Commit 502d2d2d authored by Andrew Newdigate's avatar Andrew Newdigate

馃毃 Tests: ensure that sample chats service does not use table scans

parent 41264d0f
......@@ -3,15 +3,22 @@
var testRequire = require('../test-require');
var assert = require('assert');
var sampleChatsService = testRequire("./services/sample-chats-service");
var fixtureLoader = require('gitter-web-test-utils/lib/test-fixtures');
describe('sample-chats-service', function() {
it('should return sample chats #slow', function(done) {
sampleChatsService.getSamples()
.then(function(chats) {
assert(Array.isArray(chats));
})
.nodeify(done);
describe('integration tests #slow', function() {
fixtureLoader.disableMongoTableScans();
it('should return sample chats #slow', function(done) {
sampleChatsService.getSamples()
.then(function(chats) {
assert(Array.isArray(chats));
})
.nodeify(done);
});
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment