Skip to content

Commit ea9eb35

Browse files
test: fix
1 parent 5c75f37 commit ea9eb35

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

test/dev.test.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { setup, loadConfig, get, url } = require('@nuxtjs/module-test-utils')
1+
const { setup, loadConfig, get } = require('@nuxtjs/module-test-utils')
22

33
describe('dev', () => {
44
let nuxt, addTemplate
@@ -21,11 +21,6 @@ describe('dev', () => {
2121
expect(html).toContain('Works!')
2222
})
2323

24-
test('$ga should be defined', async () => {
25-
const window = await nuxt.renderAndGetWindow(url('/'))
26-
expect(window.$nuxt.$ga).toBeDefined()
27-
})
28-
2924
test('option id', () => {
3025
expect(addTemplate).toBeDefined()
3126
const call = addTemplate.mock.calls.find(args => args[0].src.includes('plugin.js'))

test/disabled-send-hit-task.test.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { setup, loadConfig, get, url } = require('@nuxtjs/module-test-utils')
1+
const { setup, loadConfig, get } = require('@nuxtjs/module-test-utils')
22

33
describe('disabled sendHitTask', () => {
44
let nuxt, addTemplate
@@ -21,11 +21,6 @@ describe('disabled sendHitTask', () => {
2121
expect(html).toContain('Works!')
2222
})
2323

24-
test('$ga should be defined', async () => {
25-
const window = await nuxt.renderAndGetWindow(url('/'))
26-
expect(window.$nuxt.$ga).toBeDefined()
27-
})
28-
2924
test('sendHitTask should be false', () => {
3025
expect(addTemplate).toBeDefined()
3126
const call = addTemplate.mock.calls.find(args => args[0].src.includes('plugin.js'))

test/disabled.test.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { setup, loadConfig, get, url } = require('@nuxtjs/module-test-utils')
1+
const { setup, loadConfig, get } = require('@nuxtjs/module-test-utils')
22

33
describe('disabled', () => {
44
let nuxt, addTemplate
@@ -21,11 +21,6 @@ describe('disabled', () => {
2121
expect(html).toContain('Works!')
2222
})
2323

24-
test('$ga should be undefined', async () => {
25-
const window = await nuxt.renderAndGetWindow(url('/'))
26-
expect(window.$nuxt.$ga).toBeUndefined()
27-
})
28-
2924
test('plugin should be undefined', () => {
3025
expect(addTemplate).toBeDefined()
3126
const call = addTemplate.mock.calls.find(args => args[0].src.includes('plugin.js'))

0 commit comments

Comments
 (0)