@magnetarjs/core
Advanced tools
Comparing version 0.2.11 to 0.2.12
{ | ||
"name": "@magnetarjs/core", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"sideEffects": false, | ||
@@ -25,4 +25,3 @@ "description": "Magnetar core library.", | ||
"devDependencies": { | ||
"@magnetarjs/test-utils": "^0.1.10", | ||
"ava": "^3.15.0" | ||
"@magnetarjs/test-utils": "^0.1.10" | ||
}, | ||
@@ -70,3 +69,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "5fdfb38fb075d71b57b46915f99716eea5de4af3" | ||
"gitHead": "fe2e6e975604170081683ccd3e65c78459925d7c" | ||
} |
@@ -71,3 +71,3 @@ import { O } from 'ts-toolbelt' | ||
actionConfig?: ActionConfig | ||
) => Promise<calledFrom extends 'collection' ? Map<string, DocDataType> : DocDataType> | ||
) => Promise<calledFrom extends 'collection' ? Map<string, DocDataType> : DocDataType | undefined> | ||
@@ -74,0 +74,0 @@ /** |
@@ -28,3 +28,4 @@ import test from 'ava' | ||
} catch (error) { | ||
return t.fail(JSON.stringify(error)) | ||
t.fail(JSON.stringify(error)) | ||
return | ||
} | ||
@@ -31,0 +32,0 @@ const newId = moduleFromResult.id |
@@ -10,3 +10,2 @@ import { | ||
pokedex, | ||
PokedexEntry, | ||
generateRandomId, | ||
@@ -16,2 +15,3 @@ PluginMockLocal, | ||
} from '@magnetarjs/test-utils' | ||
import type { PokedexEntry } from '@magnetarjs/test-utils' | ||
import { O } from 'ts-toolbelt' | ||
@@ -18,0 +18,0 @@ |
@@ -28,3 +28,4 @@ import test from 'ava' | ||
} catch (error) { | ||
return t.fail(JSON.stringify(error)) | ||
t.fail(JSON.stringify(error)) | ||
return | ||
} | ||
@@ -55,3 +56,3 @@ const newId = moduleFromResult.id | ||
// check data of reference returned | ||
t.deepEqual(result, trainerModule.data) | ||
t.deepEqual(result, trainerModule.data as any) | ||
} catch (error) { | ||
@@ -58,0 +59,0 @@ t.fail(JSON.stringify(error)) |
@@ -66,3 +66,5 @@ import test from 'ava' | ||
}, | ||
success: ({ storeName, result }) => t.fail(), | ||
success: ({ storeName, result }) => { | ||
t.fail() | ||
}, | ||
error: ({ storeName }) => { | ||
@@ -69,0 +71,0 @@ if (storeName === 'local') t.fail() |
294365
1
6771