Skip to content

Commit

Permalink
Bye sanity test
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Aug 27, 2021
1 parent 343573c commit 0651383
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
16 changes: 4 additions & 12 deletions src/test/game.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import fs from 'fs'
import { buildEnvironment, WollokException, WRENatives } from 'wollok-ts'
import { buildEnvironment, WRENatives } from 'wollok-ts'
import interpret, { Interpreter } from 'wollok-ts/dist/interpreter/interpreter'
import { visualState, flushEvents, canvasResolution, wKeyCode, buildKeyPressEvent, queueEvent } from '../components/game/SketchUtils';
import { visualState, flushEvents, canvasResolution, wKeyCode, buildKeyPressEvent, queueEvent } from '../components/game/SketchUtils'
import { buildGameProject, GameProject, getProgramIn } from '../components/game/gameProject'
import { MessageDrawer, messageTextPosition } from '../components/game/messages'
import { exception } from 'console';

const readFiles = (files: string[]) => files.map(file => ({
name: file,
Expand Down Expand Up @@ -136,7 +135,7 @@ describe('VisualState', () => {
position: { x: 1, y: 2 },
message: undefined,
text: undefined,
textColor: undefined
textColor: undefined,
})
})

Expand All @@ -146,17 +145,10 @@ describe('VisualState', () => {
position: { x: 0, y: 0 },
message: undefined,
text: 'Sample text',
textColor: 'FF0000FF'
textColor: 'FF0000FF',
})
})

try {
gameTest('incomplete visual', 'incompleteVisual', ['games/incompleteVisual.wpgm'], function (interpreter) {})
}
catch(exception) {
expect(exception).toBeInstanceOf(WollokException)
}

})

/*
Expand Down
10 changes: 0 additions & 10 deletions src/test/games/incompleteVisual.wpgm

This file was deleted.

0 comments on commit 0651383

Please sign in to comment.