Skip to content

Commit

Permalink
update assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie committed Nov 3, 2022
1 parent febbdc6 commit b7eb30f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ it('returns false and raises console error if feature flags have not been initia
value: undefined,
});

expect(
isFeatureEnabled(FeatureFlag.ALLOW_DASHBOARD_DOMAIN_SHARDING),
).toBeFalsy();
expect(isFeatureEnabled(FeatureFlag.ALLOW_DASHBOARD_DOMAIN_SHARDING)).toEqual(
false,
);
expect(console.error).toHaveBeenCalled();
// @ts-expect-error
expect(console.error.mock.calls[0][0]).toEqual(
Expand All @@ -40,9 +40,9 @@ it('returns false for unset feature flag', () => {
value: {},
});

expect(
isFeatureEnabled(FeatureFlag.ALLOW_DASHBOARD_DOMAIN_SHARDING),
).toBeFalsy();
expect(isFeatureEnabled(FeatureFlag.ALLOW_DASHBOARD_DOMAIN_SHARDING)).toEqual(
false,
);
});

it('returns true for set feature flag', () => {
Expand All @@ -52,5 +52,5 @@ it('returns true for set feature flag', () => {
},
});

expect(isFeatureEnabled(FeatureFlag.CLIENT_CACHE)).toBeTruthy();
expect(isFeatureEnabled(FeatureFlag.CLIENT_CACHE)).toEqual(true);
});

0 comments on commit b7eb30f

Please sign in to comment.