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 7d5abe8 commit 978c86aCopy full SHA for 978c86a
test/unit/specs/instance/events_spec.js
@@ -237,6 +237,24 @@ describe('Instance Events', function () {
237
expect(vm.a).toBe(1)
238
})
239
240
+ it('passing $arguments', function () {
241
+ new Vue({
242
+ el: document.createElement('div'),
243
+ template: '<comp @ready="onReady($arguments[1])"></comp>',
244
+ methods: {
245
+ onReady: spy
246
+ },
247
+ components: {
248
+ comp: {
249
+ compiled: function () {
250
+ this.$emit('ready', 123, 1234)
251
+ }
252
253
254
+ })
255
+ expect(spy).toHaveBeenCalledWith(1234)
256
257
+
258
describe('attached/detached', function () {
259
260
it('in DOM', function () {
0 commit comments