Skip to content

Instantly share code, notes, and snippets.

@ilyakam
Last active November 26, 2016 08:41
Show Gist options
  • Save ilyakam/e837111a5a9aab2688f5abf88092aa22 to your computer and use it in GitHub Desktop.
Save ilyakam/e837111a5a9aab2688f5abf88092aa22 to your computer and use it in GitHub Desktop.
$modal.open({
resolve: {
value: function() {
return _this.value;
}
}
});
describe('$modal.open()', function() {
it('should resolve the value', function() {
var valueTester = {
asymmetricMatch: function(value) {
return value() === controller.value;
}
};
expect($modal.open)
.toHaveBeenCalledWith(jasmine.objectContaining({
resolve: {value: valueTester}
}));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment