describe('Test Suite - Pend', function () { xit('pending test', function (done) { true.should.be.ok; done(); }); });
describe('test fork', function() { beforeEach(function() { cluster.isMaster = false; mock(Server, '$$server', noop); }); xit('test $$server called', function() { Server.$$cluster(); assert(Server.$$server.called); }); });
describe('The SignalFlow Client', function () { //TODO : re-enable this test once we figure out why it causes a hang xit('should initialize and wrap a request manager', function (done) { var client = sflowclient('AUTHTOKEN'); var exposedFns = Object.keys(client); expect(exposedFns.length).to.equal(1); expect(exposedFns.indexOf('execute')).to.equal(-1); }); });
describe('test AssetResponse', function() { beforeEach(function() { $isRoutedAssetResourceResponseMock.returnWith(true); mock($Routes, 'fetch', () => ({ routes: {} })); request = new $Request(req); mock( $Responses.AssetResponse.prototype, 'constructor', function() { return { head }; } ); }); afterEach(simple.restore); xit('test no found route, asset', function() { request.$$route(); expect( $isRoutedAssetResourceResponseMock.calls[0].args[0] ).to.eq('/test.html'); assert($Responses.AssetResponse.called); assert(head.called); assert(write.called); }); });
expect(config.templateDirs).to.deep.eq([ 'templates/' ]); }); xit('test successful config load, js', function() { findMock.returnWith('test.js'); expect(() => new Config()).to.throw();
describe('Test Suite - Failed After Each', function () { it('passing test', function (done) { true.should.be.ok; done(); }); xit('pending test', function (done) { done(); }); it('failing test', function (done) { false.should.be.ok; done(); }); it('passing test', function (done) { true.should.be.ok; done(); }); xit('pending test', function (done) { done(); }); afterEach('failing afterEach hook', function () { console.log('a'); }); });
}); xit('should attempt to authenticate when called', function (done) {
}); afterEach(() => simple.restore()); xit('test $$bootstrap with node_modules', function() { fs.readdirSync.returnWith([ 'node_modules' ]); app.$$bootstrap(); expect(app.configs).to.deep.eq([]); }); xit('test $$bootstrap with non-js files', function() { app.$$bootstrap(); expect(Promise.all.calls[0].args[0]).to.deep.eq([]); expect(spy).to.have.been.called; }); xit('test $$bootstrap', function() { fs.readdirSync.returnWith([ 'test.js' ]); expect(app.$$bootstrap().val).to.be.true;
describe('Test Suite - Failed After', function () { it('passing test', function (done) { true.should.be.ok; done(); }); xit('pending test', function (done) { done(); }); it('failing test', function (done) { false.should.be.ok; done(); }); it('passing test', function (done) { true.should.be.ok; done(); }); xit('pending test', function (done) { done(); }); after('failing after hook', function () { console.log('a'); }); });