update test

master
pooya parsa 2019-04-10 01:10:27 +04:30
parent 47fb126128
commit 62b227f13d
1 changed files with 0 additions and 8 deletions

View File

@ -16,14 +16,6 @@ describe('module', () => {
await nuxt.close() await nuxt.close()
}) })
test('baseURL', () => {
expect(nuxt.moduleContainer.addTemplate).toBeDefined()
const call = nuxt.moduleContainer.addTemplate.calls.find(args => args[0].src.includes('plugin.js'))
const options = call[0].options
expect(options.baseURL.toString()).toBe('http://localhost:3000/test_api')
expect(options.browserBaseURL.toString()).toBe('/test_api')
})
test('asyncData', async () => { test('asyncData', async () => {
const html = await fetch(url('/asyncData')).then(r => r.text()) const html = await fetch(url('/asyncData')).then(r => r.text())
expect(html).toContain('foo/bar') expect(html).toContain('foo/bar')