Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 63f1c41

Browse files
committed
fix test lint
1 parent f9f7abb commit 63f1c41

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

test/PhasedRollOut-test.js

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,51 +25,48 @@ describe('PhasedRollOut', function() {
2525

2626
it('should return true if phased rollout feature is not configured', function() {
2727
expect(phasedRollOutExpiredForUser("@user:hs", "feature_test", 0, {
28-
"feature_other": {offset: 0, period: 0}
28+
"feature_other": {offset: 0, period: 0},
2929
})).toBeTruthy();
3030
});
3131

3232
it('should return false if phased rollout for feature is misconfigured', function() {
3333
expect(phasedRollOutExpiredForUser("@user:hs", "feature_test", 0, {
34-
"feature_test": {}
34+
"feature_test": {},
3535
})).toBeFalsy();
3636
});
3737

3838
it("should return false if phased rollout hasn't started yet", function() {
39-
expect(phasedRollOutExpiredForUser("@user:hs", "feature_test", 5000000,{
40-
"feature_test": {offset: OFFSET, period: MS_IN_MINUTE}
39+
expect(phasedRollOutExpiredForUser("@user:hs", "feature_test", 5000000, {
40+
"feature_test": {offset: OFFSET, period: MS_IN_MINUTE},
4141
})).toBeFalsy();
4242
});
4343

4444
it("should start to return true in bucket 2/10 for '@user:hs'", function() {
4545
expect(phasedRollOutExpiredForUser("@user:hs", "feature_test",
4646
OFFSET + (MS_IN_MINUTE * 2) - 1, {
47-
"feature_test": {offset: OFFSET, period: MS_IN_MINUTE * 10}
47+
"feature_test": {offset: OFFSET, period: MS_IN_MINUTE * 10},
4848
})).toBeFalsy();
4949
expect(phasedRollOutExpiredForUser("@user:hs", "feature_test",
5050
OFFSET + (MS_IN_MINUTE * 2), {
51-
"feature_test": {offset: OFFSET, period: MS_IN_MINUTE * 10}
51+
"feature_test": {offset: OFFSET, period: MS_IN_MINUTE * 10},
5252
})).toBeTruthy();
5353
});
5454

5555
it("should start to return true in bucket 4/10 for 'alice@other-hs'", function() {
5656
expect(phasedRollOutExpiredForUser("alice@other-hs", "feature_test",
5757
OFFSET + (MS_IN_MINUTE * 4) - 1, {
58-
"feature_test": {offset: OFFSET, period: MS_IN_MINUTE * 10}
58+
"feature_test": {offset: OFFSET, period: MS_IN_MINUTE * 10},
5959
})).toBeFalsy();
6060
expect(phasedRollOutExpiredForUser("alice@other-hs", "feature_test",
6161
OFFSET + (MS_IN_MINUTE * 4), {
62-
"feature_test": {offset: OFFSET, period: MS_IN_MINUTE * 10}
62+
"feature_test": {offset: OFFSET, period: MS_IN_MINUTE * 10},
6363
})).toBeTruthy();
6464
});
6565

6666
it("should return true after complete rollout period'", function() {
6767
expect(phasedRollOutExpiredForUser("user:hs", "feature_test",
6868
OFFSET + (MS_IN_MINUTE * 20), {
69-
"feature_test": {offset: OFFSET, period: MS_IN_MINUTE * 10}
69+
"feature_test": {offset: OFFSET, period: MS_IN_MINUTE * 10},
7070
})).toBeTruthy();
7171
});
72-
73-
74-
7572
});

0 commit comments

Comments
 (0)