Created
March 5, 2015 21:12
-
-
Save vladmiller/fc72c8de7be5195fae62 to your computer and use it in GitHub Desktop.
strongloop-testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "[email protected]", | |
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