We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91ba244 commit bf73f08Copy full SHA for bf73f08
test/unit/specs/utils.js
@@ -143,6 +143,19 @@ describe('UNIT: Utils', function () {
143
144
})
145
146
+
147
+ describe('bind', function () {
148
149
+ it('should bind the right context', function () {
150
+ function test () {
151
+ return this + 1
152
+ }
153
+ var bound = utils.bind(test, 2)
154
+ assert.strictEqual(bound(), 3)
155
+ })
156
157
158
159
describe('toFragment', function () {
160
161
it('should convert a string tempalte to a documentFragment', function () {
0 commit comments