update drift_wasm_test

This commit is contained in:
Nick Fisher 2023-12-08 14:16:33 +08:00 committed by Simon Binder
parent 08e50d28f8
commit e53035bc8f
1 changed files with 17 additions and 0 deletions

View File

@ -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();