Internationalization
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { loadI18n } from '../test-support/i18n.js';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
@@ -17,6 +18,8 @@ test('legacy vibration patterns are exposed as immutable constants', async () =>
|
||||
Wegwichtel: {}
|
||||
};
|
||||
|
||||
await loadI18n(context);
|
||||
|
||||
vm.runInNewContext(await source(), context);
|
||||
const vibration = context.Wegwichtel.Vibration;
|
||||
|
||||
@@ -37,6 +40,8 @@ test('vibration wrapper starts named patterns and can cancel them', async () =>
|
||||
Wegwichtel: {}
|
||||
};
|
||||
|
||||
await loadI18n(context);
|
||||
|
||||
vm.runInNewContext(await source(), context);
|
||||
const vibration = context.Wegwichtel.Vibration;
|
||||
|
||||
@@ -54,6 +59,8 @@ test('vibration wrapper fails harmlessly when the browser API is unavailable', a
|
||||
Wegwichtel: {}
|
||||
};
|
||||
|
||||
await loadI18n(context);
|
||||
|
||||
vm.runInNewContext(await source(), context);
|
||||
const vibration = context.Wegwichtel.Vibration;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user