@theia/api-tests 1.70.0-next.43 → 1.70.0-next.54
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/scm.spec.js +2 -22
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/api-tests",
|
|
3
|
-
"version": "1.70.0-next.
|
|
3
|
+
"version": "1.70.0-next.54+c9c26a687",
|
|
4
4
|
"description": "Theia API tests",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.70.0-next.
|
|
6
|
+
"@theia/core": "1.70.0-next.54+c9c26a687"
|
|
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": "c9c26a687a2e1692d22548ce0de9adc11010effd"
|
|
24
24
|
}
|
package/src/scm.spec.js
CHANGED
|
@@ -107,33 +107,13 @@ describe('SCM', function () {
|
|
|
107
107
|
assert.isTrue(scmWidget.resourceWidget.isVisible);
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
-
it('the view should
|
|
110
|
+
it('the view should remain visible when no repository is present (shows welcome content)', () => {
|
|
111
111
|
|
|
112
112
|
// Store the current selected repository so it can be restored.
|
|
113
113
|
const cachedSelectedRepository = scmService.selectedRepository;
|
|
114
114
|
|
|
115
115
|
scmService.selectedRepository = undefined;
|
|
116
|
-
assert.
|
|
117
|
-
|
|
118
|
-
// Restore the selected repository.
|
|
119
|
-
scmService.selectedRepository = cachedSelectedRepository;
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
describe('\'ScmNoRepositoryWidget\'', () => {
|
|
125
|
-
|
|
126
|
-
it('should not be visible when a repository is present', () => {
|
|
127
|
-
assert.isFalse(scmWidget.noRepositoryWidget.isVisible);
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
it('should be visible when no repository is present', () => {
|
|
131
|
-
|
|
132
|
-
// Store the current selected repository so it can be restored.
|
|
133
|
-
const cachedSelectedRepository = scmService.selectedRepository;
|
|
134
|
-
|
|
135
|
-
scmService.selectedRepository = undefined;
|
|
136
|
-
assert.isTrue(scmWidget.noRepositoryWidget.isVisible);
|
|
116
|
+
assert.isTrue(scmWidget.resourceWidget.isVisible);
|
|
137
117
|
|
|
138
118
|
// Restore the selected repository.
|
|
139
119
|
scmService.selectedRepository = cachedSelectedRepository;
|