Skip to content

Commit

Permalink
style: remove log & dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
farid-temuri-lofty committed Apr 4, 2023
1 parent 271d886 commit a7bd5d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { axiosOptions } from '#build/axios-options'

export default defineNuxtPlugin(() => {
const axiosInstance = axios.create(axiosOptions)
console.log(axiosOptions);
return {
provide: {
axios: axiosInstance
Expand Down
2 changes: 0 additions & 2 deletions test/basic.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { describe, it, expect } from 'vitest'
import { fileURLToPath } from 'node:url'
import { setup, $fetch } from '@nuxt/test-utils'
import { useNuxtApp } from 'nuxt/app'

describe('$axios on', async () => {
await setup({
rootDir: fileURLToPath(new URL('./fixtures/basic', import.meta.url)),
})
it('ssr page', async () => {
const html = await $fetch( '/' )
console.log(html);
expect(html).toContain(`"name": "Luke Skywalker"`)
} )
})

0 comments on commit a7bd5d2

Please sign in to comment.