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:
authorFilipa Lacerda <filipa@gitlab.com>2017-10-05 01:47:03 +0300
committerFilipa Lacerda <filipa@gitlab.com>2017-10-05 01:47:03 +0300
commit7d8e410ffea377f101bf26022ce2e3dd881adb02 (patch)
tree5a7033602b5010b339dfa31c29f08f8b1f3b4acc /spec/javascripts
parent62545ddb2c1552de84c7c5c2b3fdfa8ca2c38a67 (diff)
Changes after review
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/clusters_spec.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/spec/javascripts/clusters_spec.js b/spec/javascripts/clusters_spec.js
index 2ceb0cfdf4c..eb1cd6eb804 100644
--- a/spec/javascripts/clusters_spec.js
+++ b/spec/javascripts/clusters_spec.js
@@ -29,14 +29,14 @@ describe('Clusters', () => {
cluster.updateContainer('creating');
expect(
- cluster.creatingContainer.classList,
- ).not.toContain('hidden');
+ cluster.creatingContainer.classList.contains('hidden'),
+ ).toBeFalsy();
expect(
- cluster.successContainer.classList,
- ).toContain('hidden');
+ cluster.successContainer.classList.contains('hidden'),
+ ).toBeTruthy();
expect(
- cluster.errorContainer.classList,
- ).toContain('hidden');
+ cluster.errorContainer.classList.contains('hidden'),
+ ).toBeTruthy();
});
});
@@ -45,14 +45,14 @@ describe('Clusters', () => {
cluster.updateContainer('created');
expect(
- cluster.creatingContainer.classList,
- ).toContain('hidden');
+ cluster.creatingContainer.classList.contains('hidden'),
+ ).toBeTruthy();
expect(
- cluster.successContainer.classList,
- ).not.toContain('hidden');
+ cluster.successContainer.classList.contains('hidden'),
+ ).toBeFalsy();
expect(
- cluster.errorContainer.classList,
- ).toContain('hidden');
+ cluster.errorContainer.classList.contains('hidden'),
+ ).toBeTruthy();
});
});
@@ -61,17 +61,17 @@ describe('Clusters', () => {
cluster.updateContainer('errored', 'this is an error');
expect(
- cluster.creatingContainer.classList,
- ).toContain('hidden');
+ cluster.creatingContainer.classList.contains('hidden'),
+ ).toBeTruthy();
expect(
- cluster.successContainer.classList,
- ).toContain('hidden');
+ cluster.successContainer.classList.contains('hidden'),
+ ).toBeTruthy();
expect(
- cluster.errorContainer.classList,
- ).not.toContain('hidden');
+ cluster.errorContainer.classList.contains('hidden'),
+ ).toBeFalsy();
expect(
- cluster.errorContainer.querySelector('.js-error-reason').textContent,
+ cluster.errorReasonContainer.textContent,
).toContain('this is an error');
});
});