Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophNiehoff committed Sep 3, 2021
1 parent af5c21b commit 2d85af2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/server/__tests__/server.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { gameServer, gameServerHandle, publicApiServer, publicApiServerHandle } from '../server'
import request from 'supertest';
import { MODEL_TYPE_THREAT_DRAGON } from '../../utils/constants';
import { GAMEMODE_EOP, MODEL_TYPE_THREAT_DRAGON } from '../../utils/constants';
import { gameServer, gameServerHandle, publicApiServer, publicApiServerHandle } from '../server';

it('gameServer is not undefined', async() => {
expect(gameServer).toBeDefined();
Expand Down Expand Up @@ -74,6 +74,8 @@ it('download the final model for a game', async () => {

const state = {
G: {
modelType: MODEL_TYPE_THREAT_DRAGON,
gameMode: GAMEMODE_EOP,
identifiedThreats: {
"0": {
"component-1": {
Expand Down Expand Up @@ -162,6 +164,8 @@ it("Download threat file", async () => {

const state = {
G: {
modelType: MODEL_TYPE_THREAT_DRAGON,
gameMode: GAMEMODE_EOP,
identifiedThreats: {
"0": {
"component-1": {
Expand Down

0 comments on commit 2d85af2

Please sign in to comment.