Skip to content

Instantly share code, notes, and snippets.

@vladmiller
Created March 5, 2015 21:12
Show Gist options
  • Save vladmiller/fc72c8de7be5195fae62 to your computer and use it in GitHub Desktop.
Save vladmiller/fc72c8de7be5195fae62 to your computer and use it in GitHub Desktop.
strongloop-testing
describe('Flight remote methods Spec', function() {
beforeEach(function(done) {
var ref = TestDataBuilder.ref;
new TestDataBuilder()
.define('chat_1', Chat, {
title: "Admin Chat"
})
.buildTo(this, function(err) {
done(err)
});
});
lt.describe.whenCalledByUserWithRole({
name: "Admin User",
email: "admin@example.com",
openChat: [ ...ACCESS CHAT_1 ID HERE... ]
}, 'admin', 'GET', '/api/chat', function(done) {
done()
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment