mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Ensure that different features produce different results
This commit is contained in:
parent
3a4edeaf4c
commit
600191b2af
1 changed files with 29 additions and 1 deletions
|
@ -497,7 +497,10 @@ describe "ProjectController", ->
|
|||
it 'should produce the expected results', ->
|
||||
result = @ids.map (i) =>
|
||||
@ProjectController._isInPercentageRollout('abcd', i, 50)
|
||||
expect(result).to.deep.equal [
|
||||
expect(
|
||||
@ids.map (i) =>
|
||||
@ProjectController._isInPercentageRollout('abcd', i, 50)
|
||||
).to.deep.equal [
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
|
@ -518,6 +521,31 @@ describe "ProjectController", ->
|
|||
true,
|
||||
false,
|
||||
true
|
||||
]
|
||||
expect(
|
||||
@ids.map (i) =>
|
||||
@ProjectController._isInPercentageRollout('efgh', i, 50)
|
||||
).to.deep.equal [
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
true,
|
||||
false,
|
||||
false
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue