Skip to content

Commit

Permalink
TiledScene spec
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdionysus committed Apr 16, 2020
1 parent 5444603 commit 4d37324
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/TiledScene_spec.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
const TiledScene = require("../lib/TiledScene")

describe('TiledScene', () => {
it('should allow New', () => {
var x1 = new TiledScene()
var x2 = new TiledScene()

expect(x1).not.toBe(x2)
})

it('should have the correct defaults', () => {
var x1 = new TiledScene()

expect(x1.tileWidth).toEqual(32)
expect(x1.tileHeight).toEqual(32)
expect(x1.perspectiveMode).toEqual(TiledScene.PERSPECTIVE_OVERHEAD)
expect(x1._doredraw).toBeTruthy()
})
})

0 comments on commit 4d37324

Please sign in to comment.