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 cd8a235 commit 78f3a7cCopy full SHA for 78f3a7c
test/unit/specs/api/dom_spec.js
@@ -178,5 +178,24 @@ if (_.inBrowser) {
178
179
})
180
181
+ describe('$nextTick', function () {
182
+
183
+ it('should work', function (done) {
184
+ var context
185
+ var called = false
186
+ vm.$nextTick(function () {
187
+ called = true
188
+ context = this
189
+ })
190
+ expect(called).toBe(false)
191
+ _.nextTick(function () {
192
+ expect(called).toBe(true)
193
+ expect(context).toBe(vm)
194
+ done()
195
196
197
198
199
200
201
}
0 commit comments