@theia/api-tests 1.68.0-next.8 → 1.68.0

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 CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@theia/api-tests",
3
- "version": "1.68.0-next.8+e54dfb735",
3
+ "version": "1.68.0",
4
4
  "description": "Theia API tests",
5
5
  "dependencies": {
6
- "@theia/core": "1.68.0-next.8+e54dfb735"
6
+ "@theia/core": "1.68.0"
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": "e54dfb7358bda02385e9c3d881e3620432f4955c"
23
+ "gitHead": "d844a76de68367f16a726f1eae0c2032ecb85f63"
24
24
  }
@@ -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 eventValues = event && Object.keys(event).reduce((accu, key) => { accu[key] = event[key].newValue; return accu; }, {});
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(actualValues, eventValues, 'The event should reflect the current state of the service.');
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
  });