Last active
July 27, 2016 20:27
-
-
Save jonpitch/5e480906625ba3f26284180af8b6f413 to your computer and use it in GitHub Desktop.
write better ember tests - mirage scenario
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
test('a test demonstrating a scenario based api response', function(assert) { | |
// override the request made in this test | |
server.get('/api/things', function({ db }, request) { | |
return { | |
// some different response | |
}; | |
}); | |
// assertions | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment