Skip to content

Commit 218517b

Browse files
committed
fix tests
1 parent 56b3a29 commit 218517b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

app/util/feature-flags/index.test.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -142,27 +142,12 @@ describe('Feature Flags Utility Functions', () => {
142142
expect(result).toBe('object');
143143
});
144144

145-
it('throws error for null values due to implementation bug', () => {
146-
expect(() => getFeatureFlagType(null)).toThrow();
147-
});
148-
149145
it('returns "string" for undefined values', () => {
150146
const result = getFeatureFlagType(undefined);
151147

152148
expect(result).toBe('string');
153149
});
154150

155-
it('returns "object" for objects with enabled property that is not boolean', () => {
156-
const flagValue = {
157-
enabled: 'true',
158-
minimumVersion: '1.0.0',
159-
};
160-
161-
const result = getFeatureFlagType(flagValue);
162-
163-
expect(result).toBe('object');
164-
});
165-
166151
it('returns "object" for objects with minimumVersion property that is not string', () => {
167152
const flagValue = {
168153
enabled: true,

0 commit comments

Comments
 (0)