@theia/api-tests 1.68.0-next.7 → 1.68.0-next.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/preferences.spec.js +2 -2
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/api-tests",
|
|
3
|
-
"version": "1.68.0-next.
|
|
3
|
+
"version": "1.68.0-next.79+c38f18ec72c",
|
|
4
4
|
"description": "Theia API tests",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.68.0-next.
|
|
6
|
+
"@theia/core": "1.68.0-next.79+c38f18ec72c"
|
|
7
7
|
},
|
|
8
8
|
"license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0",
|
|
9
9
|
"repository": {
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "c38f18ec72c0cb454100658a01331bd9fb7bd8cc"
|
|
24
24
|
}
|
package/src/preferences.spec.js
CHANGED
|
@@ -200,10 +200,10 @@ describe('Preferences', function () {
|
|
|
200
200
|
const results = await Promise.allSettled(promises);
|
|
201
201
|
const expectedValues = { [searchPref]: searchDebounce, [channelPref]: channelHistory, [hoverPref]: hoverDelay };
|
|
202
202
|
const actualValues = { [searchPref]: preferenceService.get(searchPref), [channelPref]: preferenceService.get(channelPref), [hoverPref]: preferenceService.get(hoverPref), }
|
|
203
|
-
const
|
|
203
|
+
const eventKeys = event && Object.keys(event).sort();
|
|
204
204
|
toDispose.dispose();
|
|
205
205
|
assert(results.every(setting => setting.status === 'fulfilled'), 'All promises should have resolved rather than rejected.');
|
|
206
|
-
assert.deepEqual(
|
|
206
|
+
assert.deepEqual([channelPref, searchPref, hoverPref], eventKeys, 'The event should contain the changed preference names.');
|
|
207
207
|
assert.deepEqual(expectedValues, actualValues, 'The service state should reflect the most recent setting');
|
|
208
208
|
});
|
|
209
209
|
});
|