@theia/api-tests 1.70.0-next.43 → 1.70.0-next.51

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. 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.43+8b83716cc",
3
+ "version": "1.70.0-next.51+d3b790785",
4
4
  "description": "Theia API tests",
5
5
  "dependencies": {
6
- "@theia/core": "1.70.0-next.43+8b83716cc"
6
+ "@theia/core": "1.70.0-next.51+d3b790785"
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": "8b83716cc93de231a1d472d4ae4016711dbd31a3"
23
+ "gitHead": "d3b790785711d8546ee321ede37d04fdb2b6b6d3"
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 not display the resource tree when no repository is present', () => {
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.isFalse(scmWidget.resourceWidget.isVisible);
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;