|
1 | | -import { defaultLocalize, IS_ENUM_COLLECTION as IS_ENUM_COLLECTION_IN_NODE } from '@enum-plus'; |
| 1 | +import { defaultLocalize, IS_ENUM as IS_ENUM_IN_NODE } from '@enum-plus'; |
2 | 2 | import type TestEngineBase from '../engines/base'; |
3 | 3 | import { toPlainEnums } from '../utils/index'; |
4 | 4 | import { addEnumValuesTestSuite } from './enum-items'; |
@@ -159,16 +159,16 @@ const testEnumCollection = (engine: TestEngineBase) => { |
159 | 159 |
|
160 | 160 | engine.test( |
161 | 161 | 'should have [ENUM_COLLECTION] property to indicate that this is an enum collection', |
162 | | - ({ EnumPlus: { Enum, IS_ENUM_COLLECTION }, WeekConfig: { StandardWeekConfig } }) => { |
| 162 | + ({ EnumPlus: { Enum, IS_ENUM }, WeekConfig: { StandardWeekConfig } }) => { |
163 | 163 | const week = Enum(StandardWeekConfig); |
164 | | - return { week, IS_ENUM_COLLECTION }; |
| 164 | + return { week, IS_ENUM }; |
165 | 165 | }, |
166 | | - ({ week, IS_ENUM_COLLECTION }) => { |
167 | | - // @ts-expect-error: because IS_ENUM_COLLECTION is hidden by the interface, but it actually exists |
168 | | - engine.expect(week[IS_ENUM_COLLECTION]).toBe(true); |
169 | | - engine.expect(week[IS_ENUM_COLLECTION_IN_NODE]).toBe(true); |
170 | | - // @ts-expect-error: because IS_ENUM_COLLECTION and Symbol.for('[IsEnumCollection]') are equal |
171 | | - engine.expect(week[Symbol.for('[IsEnumCollection]')]).toBe(true); |
| 166 | + ({ week, IS_ENUM }) => { |
| 167 | + // @ts-expect-error: because IS_ENUM is hidden by the interface, but it actually exists |
| 168 | + engine.expect(week[IS_ENUM]).toBe(true); |
| 169 | + engine.expect(week[IS_ENUM_IN_NODE]).toBe(true); |
| 170 | + // @ts-expect-error: because IS_ENUM and Symbol.for('[IsEnum]') are equal |
| 171 | + engine.expect(week[Symbol.for('[IsEnum]')]).toBe(true); |
172 | 172 | } |
173 | 173 | ); |
174 | 174 |
|
|
0 commit comments