improve tests
This commit is contained in:
parent
78914e54b3
commit
011a865271
@ -16,3 +16,12 @@ tap.test('should create a valid looptracker instance', async () => {
|
||||
myLoopTracker = new lik.LoopTracker()
|
||||
expect(myLoopTracker).to.be.instanceof(lik.LoopTracker)
|
||||
})
|
||||
|
||||
tap.test('should add objects once and return true', async () => {
|
||||
expect(myLoopTracker.checkAndTrack(object1)).to.be.true
|
||||
expect(myLoopTracker.checkAndTrack(object1)).to.be.false
|
||||
expect(myLoopTracker.checkAndTrack(object2)).to.be.true
|
||||
expect(myLoopTracker.checkAndTrack(object2)).to.be.false
|
||||
})
|
||||
|
||||
tap.start()
|
Loading…
Reference in New Issue
Block a user