Skip to content

Commit

Permalink
chore: rm mockjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Soontao committed May 9, 2024
1 parent fb074f4 commit 32e57bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
22 changes: 1 addition & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@
"@types/uuid": "9.0.8",
"@typescript-eslint/eslint-plugin": "7.8.0",
"@typescript-eslint/parser": "7.8.0",
"eslint": "^8.57.0",
"eslint": "8.57.0",
"jest": "29.7.0",
"mockjs": "1.1.0",
"ts-jest": "29.1.2",
"typescript": "5.4.5"
},
Expand Down
7 changes: 6 additions & 1 deletion tests/cap.demo.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Random } from "mockjs";
import uuid from "uuid";
import { EdmV4, OData } from "../src";
import { CapDemoPeople } from "./demo_service_types";

Expand All @@ -8,6 +8,11 @@ if (process.env.CAP_DEMO_SERVICE === undefined) {
d = describe.skip
}

const Random = {
name: () => uuid.v4(),
integer: (min: number, max: number) => Math.floor(Math.random() * (max - min + 1)) + min
}

d('CAP Framework OData (V4) Test Suite (basic)', () => {

const Service = `${process.env.CAP_DEMO_SERVICE}/odata/`
Expand Down

0 comments on commit 32e57bc

Please sign in to comment.