fix: built-in snippets reference missing
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -2,4 +2,6 @@ import geocode_location from './geocode_location'
|
||||
import geocode_search from './geocode_search'
|
||||
import ipQuery from './ip-query'
|
||||
|
||||
export const builtInSnippets = [ipQuery, geocode_location, geocode_search]
|
||||
export const builtInSnippets = [ipQuery, geocode_location, geocode_search].map(
|
||||
($) => (($.reference = 'built-in'), $),
|
||||
)
|
||||
|
||||
@@ -192,7 +192,10 @@ describe('test serverless function service', () => {
|
||||
.lean()
|
||||
).raw,
|
||||
).toEqual('`')
|
||||
await service.resetBuiltInFunction('ip')
|
||||
await service.resetBuiltInFunction({
|
||||
name: 'ip',
|
||||
reference: 'built-in',
|
||||
})
|
||||
expect(
|
||||
(
|
||||
await model
|
||||
|
||||
Reference in New Issue
Block a user