Skip to content

Commit

Permalink
More client test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion committed Oct 10, 2024
1 parent 6e92516 commit 04bc6ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ describe('EventSource', () => {

test('getNextRetryDelay', () => {
// @ts-ignore
const delay0 = eventSource.getNextRetryDelay();
const delay0 = eventSource._getNextRetryDelay();
// @ts-ignore
const delay1 = eventSource.getNextRetryDelay();
const delay1 = eventSource._getNextRetryDelay();

// @ts-ignore
expect(eventSource.retryCount).toEqual(2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ describe('sdk-client object', () => {
const checkedContext = Context.fromLDContext(context);

// @ts-ignore
await ldc.flagManager.upsert(checkedContext, 'dev-test-flag', {
// eslint-disable-next-line no-underscore-dangle
await ldc._flagManager.upsert(checkedContext, 'dev-test-flag', {
version: 999,
flag: {
deleted: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ describe('Configuration', () => {
eventsUri: 'https://events.launchdarkly.com',
flushInterval: 30,
logger: {
destination: console.error,
logLevel: 1,
name: 'LaunchDarkly',
_destination: console.error,
_logLevel: 1,
_name: 'LaunchDarkly',
},
maxCachedContexts: 5,
privateAttributes: [],
Expand Down

0 comments on commit 04bc6ca

Please sign in to comment.