slouch/test/node-and-browser.js
2017-07-11 22:22:43 -07:00

15 lines
354 B
JavaScript

'use strict';
var Foo = require('../scripts/foo');
describe('node and browser', function () {
it('should test in both node and the browser', function () {
// TODO: insert tests that can be tested in both node and the browser
var foo = new Foo();
return foo.bar().then(function (thing) {
thing.should.eql('yar');
});
});
});