Last active
November 26, 2016 08:41
-
-
Save ilyakam/e837111a5a9aab2688f5abf88092aa22 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$modal.open({ | |
resolve: { | |
value: function() { | |
return _this.value; | |
} | |
} | |
}); |
This file contains hidden or 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('$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