Skip to content

Commit

Permalink
test(power-assert-demo): add chai demo
Browse files Browse the repository at this point in the history
  • Loading branch information
twada committed Aug 12, 2014
1 parent 96c42d7 commit d4631df
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/mocha_expect/mocha_chai_test.js
@@ -0,0 +1,10 @@
var expect = require('chai').expect;

describe('Chai example', function () {
it('item has an id', function () {
var item = {
id: 20
};
expect(item).to.have.property('id').that.is.a('string');
});
});

0 comments on commit d4631df

Please sign in to comment.