Skip to content

Commit 6227cd5

Browse files
committed
fix mockData import
1 parent 225440f commit 6227cd5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

__tests__/projects.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const request = require('supertest');
33

44

55
// initializes the project to be sent to server/DB
6-
const { projectToSave, state } = require('../app/mockData');
6+
const { projectToSave, state } = require('../mockData');
77

88
const app = require('../server/server.js');
99
const http = require('http');

__tests__/users.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const app = require('../server/server.js');
55

66
const browser = 'http://localhost:8080'; // for checking endpoints accessed with hash router
77

8-
const { user } = require('../app/mockData');
8+
const { user } = require('../mockData');
99

1010
// tests user signup and login routes
1111
describe('User authentication tests', () => {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
],
6868
"license": "MIT",
6969
"jest": {
70-
"testEnvironment" : "jsdom",
70+
"testEnvironment": "jsdom",
7171
"bail": true,
7272
"moduleNameMapper": {
7373
"^.+\\.(css|scss|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "identity-obj-proxy"
@@ -97,7 +97,6 @@
9797
"enzyme-to-json/serializer"
9898
]
9999
},
100-
101100
"bugs": {
102101
"url": "https://github.com/open-source-labs/ReacType/issues"
103102
},
@@ -139,6 +138,7 @@
139138
"eslint-plugin-react-hooks": "^4.2.0",
140139
"express-graphql": "^0.12.0",
141140
"graphql": "^15.5.0",
141+
"identity-obj-proxy": "^3.0.0",
142142
"immutable": "^4.0.0-rc.12",
143143
"js-cookie": "^2.2.1",
144144
"localforage": "^1.7.2",

0 commit comments

Comments
 (0)