Skip to content

Commit 475d1fd

Browse files
committed
added actual projectid in graphql tests, removed imports not used in enzymes.test and uncommented app.get('/') path in server.js
1 parent e97385e commit 475d1fd

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

__tests__/enzyme.test.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { shallow, render, mount } from 'enzyme';
1+
import { shallow} from 'enzyme';
22
import React from 'react';
33
import { DndProvider } from 'react-dnd';
44
import { HTML5Backend } from 'react-dnd-html5-backend';
@@ -7,7 +7,6 @@ import initialState from '../app/src/context/initialState';
77
import MainContainer from '../app/src/containers/MainContainer';
88
import BottomPanel from '../app/src/components/bottom/BottomPanel';
99
import BottomTabs from '../app/src/components/bottom/BottomTabs';
10-
import CodePreview from '../app/src/components/bottom/CodePreview';
1110
import CanvasContainer from '../app/src/components/main/CanvasContainer';
1211
import Canvas from '../app/src/components/main/Canvas';
1312
import HTMLPanel from '../app/src/components/left/HTMLPanel';
@@ -17,7 +16,6 @@ import AppContainer from '../app/src/containers/AppContainer';
1716
import NavBar from '../app/src/components/top/NavBar';
1817
import MenuItem from '@material-ui/core/MenuItem';
1918
import Tab from '@material-ui/core/Tab';
20-
import RightContainer from '../app/src/containers/RightContainer';
2119
import LoginButton from '../app/src/components/right/LoginButton';
2220

2321
/* If there is an error with unmatched snapshots because of intentionally modified codes, delete the contents in enzyme.test.tsx.snap to record new codes as blueprints */

__tests__/gql.projects.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const mock = require('../mockData');
77
describe('GraphQL tests', () => {
88
let server;
99
// Mutation test variables
10-
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
10+
const projectId = '62fd62c6d37748133a6fdc81'; // Must use a valid projectId from the database. NOTE: This should be revised for each Production Project Team since the database store different projectId
1111
const testNum = 100;
1212
const makeCopyUserIdTest = '604333d10004ad51c899e250';
1313
const makeCopyUsernameTest = 'test1';

server/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ app.delete(
188188
(req, res) => res.status(200).json(res.locals.deleted)
189189
);
190190

191-
// app.get('/', function(req, res) {
192-
// res.send('Houston, Caret is in orbit!');
193-
// });
191+
app.get('/', function(req, res) {
192+
res.send('Houston, Caret is in orbit!');
193+
});
194194

195195
// catch-all route handler
196196
app.use('*', (req, res) => res.status(404).send('Page not found'));

0 commit comments

Comments
 (0)