-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support passing options through nuxtNeo property (#33)
- Loading branch information
Showing
5 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import test from 'ava'; | ||
|
||
/* global globalBeforeAll:readable, globalAfterAll:readable, api:readable */ | ||
|
||
test.before(globalBeforeAll({ | ||
nuxtOptions: { | ||
nuxtNeo: { | ||
prefix: '/api/v2', | ||
errorHandler: '~/error_handler' | ||
} | ||
} | ||
})); | ||
test.after(globalAfterAll()); | ||
|
||
test('Test first level api (GET /api/v2/users) with options specified in nuxt config', async (t) => { | ||
const { data } = await api.get('/users'); | ||
t.true(data.ok); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters