Skip to content

Commit 0f57dd1

Browse files
committed
remove React Mobile tab from Bottom Tab and fixed script
1 parent 6227cd5 commit 0f57dd1

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

__tests__/__snapshots__/enzyme.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,19 +336,19 @@ exports[`Test HTMLPanel Component Matches snapshot 1`] = `
336336
Object {
337337
"children": Array [],
338338
"code": "<div>Drag in a component or HTML element into the canvas!</div>",
339+
"future": Array [],
339340
"id": 1,
340341
"isPage": true,
341342
"name": "App",
343+
"past": Array [],
342344
"style": Object {},
343345
},
344346
],
345-
"future": Array [],
346347
"isLoggedIn": false,
347348
"name": "",
348349
"nextChildId": 1,
349350
"nextComponentId": 2,
350351
"nextTopSeparatorId": 1000,
351-
"past": Array [],
352352
"projectType": "Classic React",
353353
"rootComponents": Array [
354354
1,

__tests__/gql.projects.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const mock = require('../mockData');
99
describe('GraphQL tests', () => {
1010
let server;
1111
// Mutation test variables
12-
const projectId = '6052b90a6287fb36e96a2bfe'; // Must use a valid projectId from the database. NOTE: This should be revised for each Production Project Team since the database store different projectId
12+
const projectId = '6053a36b6287fb36e92fab59'; // Must use a valid projectId from the database. NOTE: This should be revised for each Production Project Team since the database store different projectId
1313
const testNum = 100;
1414
const makeCopyUserIdTest = '604333d10004ad51c899e250';
1515
const makeCopyUsernameTest = 'test1';
@@ -42,11 +42,11 @@ describe('GraphQL tests', () => {
4242
.send({
4343
query: mock.GET_PROJECTS,
4444
variables: {
45-
userId: '603ac3454625489e492abe16',
45+
userId: '604d21b2b61a1c95f2dc9105',
4646
},
4747
})
4848
.expect(200)
49-
.then(res => expect(res.body.data.getAllProjects[0].userId).toBe('603ac3454625489e492abe16')));
49+
.then(res => expect(res.body.data.getAllProjects[0].userId).toBe('604d21b2b61a1c95f2dc9105')));
5050
});
5151

5252
// GraphQL Mutation

app/src/components/bottom/BottomTabs.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ const BottomTabs = () => {
7272
onChange={handleProjectChange}
7373
>
7474
<MenuItem value={'Classic React'}>Classic React</MenuItem>
75-
<MenuItem value={'React for Mobile'}>React for Mobile</MenuItem>
7675
<MenuItem value={'Gatsby.js'}>Gatsby.js</MenuItem>
7776
<MenuItem value={'Next.js'}>Next.js</MenuItem>
7877
</Select>

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"dist-linux": "npm run prod-build && electron-builder --linux",
5151
"dist-windows": "npm run prod-build && electron-builder --windows",
5252
"dist-all": "npm run prod-build && electron-builder --mac --linux --windows",
53-
"test": "cross-env NODE_ENV=test jest --verbose ",
54-
"k-test": "concurrently \"cross-env NODE_ENV=test jest gql.projects.test.js --detectOpenHandles \"",
53+
"test": " concurrently \"npm run dev-server\" \"cross-env NODE_ENV=test jest --verbose \"",
54+
"k-test": "concurrently \"npm run dev-server\" \"cross-env NODE_ENV=test jest users.test.js --detectOpenHandles \"",
5555
"server": "cross-env NODE_ENV=development nodemon server/server.js",
5656
"electron": "cross-env NODE_ENV=development electron ."
5757
},
@@ -162,6 +162,7 @@
162162
"resize-observer-polyfill": "^1.5.1",
163163
"seamless-immutable": "^7.1.4",
164164
"source-map-support": "^0.5.19",
165+
"spectron": "^11.1.0",
165166
"uuid": "^8.2.0"
166167
},
167168
"devDependencies": {

server/graphQL/resolvers/mutation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const Project = {
1313
const options = { new: true };
1414
const resp = await Projects.findOneAndUpdate(filter, update, options);
1515
if (resp) {
16-
console.log('resp, update', resp, update);
16+
1717
return ({
1818
name: resp.name,
1919
id: resp._id,

0 commit comments

Comments
 (0)