@theia/api-tests 1.58.2 → 1.59.0-next.62
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/file-search.spec.js +4 -3
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/api-tests",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.59.0-next.62+9e43c93ad",
|
|
4
4
|
"description": "Theia API tests",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.
|
|
6
|
+
"@theia/core": "1.59.0-next.62+9e43c93ad"
|
|
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": "9e43c93ad61ea977db3974207bac5d7c1fd3ccd6"
|
|
24
24
|
}
|
package/src/file-search.spec.js
CHANGED
|
@@ -21,18 +21,19 @@ describe('file-search', function () {
|
|
|
21
21
|
|
|
22
22
|
const Uri = require('@theia/core/lib/common/uri');
|
|
23
23
|
const { QuickFileOpenService } = require('@theia/file-search/lib/browser/quick-file-open');
|
|
24
|
+
const { QuickFileSelectService } = require('@theia/file-search/lib/browser/quick-file-select-service');
|
|
24
25
|
const { CancellationTokenSource } = require('@theia/core/lib/common/cancellation');
|
|
25
26
|
|
|
26
27
|
/** @type {import('inversify').Container} */
|
|
27
28
|
const container = window['theia'].container;
|
|
28
29
|
const quickFileOpenService = container.get(QuickFileOpenService);
|
|
30
|
+
const quickFileSelectService = container.get(QuickFileSelectService);
|
|
29
31
|
|
|
30
32
|
describe('quick-file-open', () => {
|
|
31
33
|
|
|
32
34
|
describe('#compareItems', () => {
|
|
33
35
|
|
|
34
|
-
|
|
35
|
-
const sortByCompareItems = (a, b) => quickFileOpenService['compareItems'](a, b);
|
|
36
|
+
const sortByCompareItems = (a, b) => quickFileSelectService['compareItems'](a, b, quickFileOpenService['filterAndRange'].filter);
|
|
36
37
|
|
|
37
38
|
it('should compare two quick-open-items by `label`', () => {
|
|
38
39
|
|
|
@@ -43,7 +44,7 @@ describe('file-search', function () {
|
|
|
43
44
|
|
|
44
45
|
assert.deepEqual([a, b].sort(sortByCompareItems), [a, b], 'a should be before b');
|
|
45
46
|
assert.deepEqual([b, a].sort(sortByCompareItems), [a, b], 'a should be before b');
|
|
46
|
-
assert.equal(
|
|
47
|
+
assert.equal(quickFileSelectService['compareItems'](a, a, quickFileOpenService['filterAndRange'].filter), 0, 'items should be equal');
|
|
47
48
|
});
|
|
48
49
|
|
|
49
50
|
it('should compare two quick-open-items by `uri`', () => {
|