Skip to content

Commit

Permalink
Updated sample test to be slightly more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjolley committed Oct 26, 2017
1 parent becdcd3 commit c8ea8cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/sample.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
require("chai").should()
import chai = require("chai")
const should = chai.should();

const fs = require('fs');
declare var muddled: Function;

const window = {};

const code = fs.readFileSync('examples/sample.temp.js', 'utf8').toString()
eval(code);

Expand All @@ -23,7 +26,8 @@ describe('Sample', () => {
describe('log', () => {
it('should add an item to the log', () => {
const res = muddled()
log_box.length.should.equal(1)
log_box.length.should.be.above(0)
log_box[0].should.equal('testing')
})
})
})

0 comments on commit c8ea8cc

Please sign in to comment.