Skip to content

Commit

Permalink
update null/undefined behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-darkly committed Aug 30, 2018
1 parent 53815ef commit dbf7490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/LDClient-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ describe('LDClient', () => {
bootstrap: { foo: 'bar' },
});

expect(client.variationDetail('foo')).toEqual({ value: 'bar', variationIndex: undefined, reason: null });
expect(client.variationDetail('foo')).toEqual({ value: 'bar', variationIndex: null, reason: null });
});

it('returns details for an existing flag - from polling', done => {
Expand All @@ -506,7 +506,7 @@ describe('LDClient', () => {
client.on('ready', () => {
expect(client.variationDetail('foo', 'default')).toEqual({
value: 'default',
variationIndex: undefined,
variationIndex: null,
reason: null,
});
done();
Expand Down

0 comments on commit dbf7490

Please sign in to comment.