Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Unified Diff: appengine/config_service/ui/bower_components/sinon-chai/test/regressions.coffee

Issue 2923973003: Added base template for config ui. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/config_service/ui/bower_components/sinon-chai/test/regressions.coffee
diff --git a/appengine/config_service/ui/bower_components/sinon-chai/test/regressions.coffee b/appengine/config_service/ui/bower_components/sinon-chai/test/regressions.coffee
new file mode 100644
index 0000000000000000000000000000000000000000..01b55773c870c4cf37f9b88840914a8c69e877b6
--- /dev/null
+++ b/appengine/config_service/ui/bower_components/sinon-chai/test/regressions.coffee
@@ -0,0 +1,22 @@
+"use strict"
+
+sinon = require("sinon")
+
+describe "Regressions", ->
+ specify "GH-19: functions with `proxy` properties", ->
+ func = ->
+ func.proxy = 5
+
+ spy = sinon.spy(func)
+ spy()
+
+ expect(-> spy.should.have.been.called).to.not.throw()
+
+ specify "GH-94: assertions on calls", ->
+ func = ->
+ spy = sinon.spy(func)
+
+ spy(1, 2, 3)
+ spy(4, 5, 6)
+
+ expect(-> spy.lastCall.should.have.been.calledWith(4, 5, 6)).to.not.throw()

Powered by Google App Engine
This is Rietveld 408576698