mirror of
https://github.com/bendtherules/github-actions-for-ci.git
synced 2026-08-18 13:53:38 +00:00
add snapshots to tests
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
const Game = require('../src/game').default
|
||||
const fs = require('fs')
|
||||
|
||||
describe('App', () => {
|
||||
it('Contains the compiled JavaScript', async (done) => {
|
||||
fs.readFile('./public/main.js', 'utf8', (err, data) => {
|
||||
expect(err).toBe(null)
|
||||
expect(data).toMatchSnapshot()
|
||||
done()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('Game', () => {
|
||||
let game, p1, p2
|
||||
|
||||
Reference in New Issue
Block a user