File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11import * as httpMock from '~test/http-mock.ts' ;
22import { PLATFORM_NOT_FOUND } from '../../constants/error-messages.ts' ;
3- import type { PlatformId } from '../../constants/index.ts' ;
3+ import { PLATFORM_HOST_TYPES , type PlatformId } from '../../constants/index.ts' ;
44import { loadModules } from '../../util/modules.ts' ;
55import api from './api.ts' ;
66import * as platform from './index.ts' ;
@@ -247,4 +247,12 @@ describe('modules/platform/index', () => {
247247 } ) ;
248248 } ) ;
249249 } ) ;
250+
251+ describe ( 'getPlatformList' , ( ) => {
252+ it ( 'has the same values as PLATFORM_HOST_TYPES' , ( ) => {
253+ expect ( new Set ( platform . getPlatformList ( ) ) ) . toEqual (
254+ new Set ( PLATFORM_HOST_TYPES ) ,
255+ ) ;
256+ } ) ;
257+ } ) ;
250258} ) ;
You can’t perform that action at this time.
0 commit comments