mirror of https://github.com/AMT-Cheif/drift.git
update drift_wasm_test
This commit is contained in:
parent
08e50d28f8
commit
e53035bc8f
|
@ -85,10 +85,27 @@ void main() {
|
|||
expect(result.storages, expectedImplementations);
|
||||
});
|
||||
|
||||
test('via regular open', () async {
|
||||
await driver.openDatabase();
|
||||
expect(await driver.amountOfRows, 0);
|
||||
|
||||
await driver.insertIntoDatabase();
|
||||
await driver.waitForTableUpdate();
|
||||
expect(await driver.amountOfRows, 1);
|
||||
});
|
||||
|
||||
test('regular open with initializaton', () async {
|
||||
await driver.enableInitialization(InitializationMode.loadAsset);
|
||||
await driver.openDatabase();
|
||||
|
||||
expect(await driver.amountOfRows, 1);
|
||||
});
|
||||
|
||||
for (final entry in browser.availableImplementations) {
|
||||
group(entry.name, () {
|
||||
test('basic', () async {
|
||||
await driver.openDatabase(entry);
|
||||
expect(await driver.amountOfRows, 0);
|
||||
|
||||
await driver.insertIntoDatabase();
|
||||
await driver.waitForTableUpdate();
|
||||
|
|
Loading…
Reference in New Issue