Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-12 06:10:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-12 06:10:28 +0300
commite8a7b1cd3fcab8b3e0679c50f483ba131f76d42d (patch)
treed0e5135afa018095c9af68fb949745a0fbe24663 /spec/frontend/clusters
parentfaedfbb4733019a8c802af115a29f67ff9c8fdae (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/clusters')
-rw-r--r--spec/frontend/clusters/clusters_bundle_spec.js42
1 files changed, 21 insertions, 21 deletions
diff --git a/spec/frontend/clusters/clusters_bundle_spec.js b/spec/frontend/clusters/clusters_bundle_spec.js
index f7aee02d7ff..ad2aa4acbaf 100644
--- a/spec/frontend/clusters/clusters_bundle_spec.js
+++ b/spec/frontend/clusters/clusters_bundle_spec.js
@@ -57,9 +57,9 @@ describe('Clusters', () => {
it('should show the creating container', () => {
cluster.updateContainer(null, 'creating');
- expect(cluster.creatingContainer.classList.contains('hidden')).toBeFalsy();
- expect(cluster.successContainer.classList.contains('hidden')).toBeTruthy();
- expect(cluster.errorContainer.classList.contains('hidden')).toBeTruthy();
+ expect(cluster.creatingContainer.classList.contains('hidden')).toBe(false);
+ expect(cluster.successContainer.classList.contains('hidden')).toBe(true);
+ expect(cluster.errorContainer.classList.contains('hidden')).toBe(true);
expect(window.location.reload).not.toHaveBeenCalled();
});
@@ -67,9 +67,9 @@ describe('Clusters', () => {
cluster.updateContainer(null, 'creating');
cluster.updateContainer('creating', 'creating');
- expect(cluster.creatingContainer.classList.contains('hidden')).toBeFalsy();
- expect(cluster.successContainer.classList.contains('hidden')).toBeTruthy();
- expect(cluster.errorContainer.classList.contains('hidden')).toBeTruthy();
+ expect(cluster.creatingContainer.classList.contains('hidden')).toBe(false);
+ expect(cluster.successContainer.classList.contains('hidden')).toBe(true);
+ expect(cluster.errorContainer.classList.contains('hidden')).toBe(true);
expect(window.location.reload).not.toHaveBeenCalled();
});
});
@@ -80,9 +80,9 @@ describe('Clusters', () => {
cluster.updateContainer(null, 'creating');
cluster.updateContainer('creating', 'created');
- expect(cluster.creatingContainer.classList.contains('hidden')).toBeTruthy();
- expect(cluster.successContainer.classList.contains('hidden')).toBeTruthy();
- expect(cluster.errorContainer.classList.contains('hidden')).toBeTruthy();
+ expect(cluster.creatingContainer.classList.contains('hidden')).toBe(true);
+ expect(cluster.successContainer.classList.contains('hidden')).toBe(true);
+ expect(cluster.errorContainer.classList.contains('hidden')).toBe(true);
expect(window.location.reload).toHaveBeenCalled();
expect(cluster.setClusterNewlyCreated).toHaveBeenCalledWith(true);
});
@@ -94,9 +94,9 @@ describe('Clusters', () => {
cluster.updateContainer(null, 'created');
cluster.updateContainer('created', 'created');
- expect(cluster.creatingContainer.classList.contains('hidden')).toBeTruthy();
- expect(cluster.successContainer.classList.contains('hidden')).toBeFalsy();
- expect(cluster.errorContainer.classList.contains('hidden')).toBeTruthy();
+ expect(cluster.creatingContainer.classList.contains('hidden')).toBe(true);
+ expect(cluster.successContainer.classList.contains('hidden')).toBe(false);
+ expect(cluster.errorContainer.classList.contains('hidden')).toBe(true);
expect(window.location.reload).not.toHaveBeenCalled();
expect(cluster.setClusterNewlyCreated).toHaveBeenCalledWith(false);
});
@@ -108,9 +108,9 @@ describe('Clusters', () => {
cluster.updateContainer(null, 'created');
cluster.updateContainer('created', 'created');
- expect(cluster.creatingContainer.classList.contains('hidden')).toBeTruthy();
- expect(cluster.successContainer.classList.contains('hidden')).toBeTruthy();
- expect(cluster.errorContainer.classList.contains('hidden')).toBeTruthy();
+ expect(cluster.creatingContainer.classList.contains('hidden')).toBe(true);
+ expect(cluster.successContainer.classList.contains('hidden')).toBe(true);
+ expect(cluster.errorContainer.classList.contains('hidden')).toBe(true);
expect(window.location.reload).not.toHaveBeenCalled();
expect(cluster.setClusterNewlyCreated).not.toHaveBeenCalled();
});
@@ -120,11 +120,11 @@ describe('Clusters', () => {
it('should show the error container', () => {
cluster.updateContainer(null, 'errored', 'this is an error');
- expect(cluster.creatingContainer.classList.contains('hidden')).toBeTruthy();
+ expect(cluster.creatingContainer.classList.contains('hidden')).toBe(true);
- expect(cluster.successContainer.classList.contains('hidden')).toBeTruthy();
+ expect(cluster.successContainer.classList.contains('hidden')).toBe(true);
- expect(cluster.errorContainer.classList.contains('hidden')).toBeFalsy();
+ expect(cluster.errorContainer.classList.contains('hidden')).toBe(false);
expect(cluster.errorReasonContainer.textContent).toContain('this is an error');
});
@@ -132,11 +132,11 @@ describe('Clusters', () => {
it('should show `error` banner when previously `creating`', () => {
cluster.updateContainer('creating', 'errored');
- expect(cluster.creatingContainer.classList.contains('hidden')).toBeTruthy();
+ expect(cluster.creatingContainer.classList.contains('hidden')).toBe(true);
- expect(cluster.successContainer.classList.contains('hidden')).toBeTruthy();
+ expect(cluster.successContainer.classList.contains('hidden')).toBe(true);
- expect(cluster.errorContainer.classList.contains('hidden')).toBeFalsy();
+ expect(cluster.errorContainer.classList.contains('hidden')).toBe(false);
});
});