Skip to content

Commit

Permalink
fix tests on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
radex committed Jan 20, 2020
1 parent 86fc11a commit 70ccf26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/adapters/__tests__/commonTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ export default () => [
// expect(() => makeAdapter({})).toThrowError(/missing migrations/)

expect(() => makeAdapter({ migrationsExperimental: [] })).toThrow(
/LokiJSAdapter `migrationsExperimental` option has been renamed to `migrations`/,
/`migrationsExperimental` option has been renamed to `migrations`/,
)

expect(() => makeAdapter({ experimentalUseIncrementalIndexedDB: false })).toThrow(
/LokiJSAdapter `experimentalUseIncrementalIndexedDB` option has been renamed/,
)
if (AdapterClass.name === 'LokiJSAdapter') {
expect(() => makeAdapter({ experimentalUseIncrementalIndexedDB: false })).toThrow(
/LokiJSAdapter `experimentalUseIncrementalIndexedDB` option has been renamed/,
)
}

expect(() => adapterWithMigrations({ migrations: [] })).toThrow(/use schemaMigrations()/)

Expand Down
2 changes: 1 addition & 1 deletion src/adapters/sqlite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export default class SQLiteAdapter implements DatabaseAdapter, SQLDatabaseAdapte
invariant(
// $FlowFixMe
options.migrationsExperimental === undefined,
'SQLiteAdapter migrationsExperimental has been renamed to migrations',
'SQLiteAdapter `migrationsExperimental` option has been renamed to `migrations`',
)
invariant(
NativeDatabaseBridge,
Expand Down

0 comments on commit 70ccf26

Please sign in to comment.