File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11import { describe , it } from 'mocha'
22import * as t from './'
3+ import { expect } from 'chai'
34
45type ServiceScalingParameters = {
56 DesiredCount ?: number | null | undefined
@@ -385,5 +386,10 @@ describe(`smoke test`, function() {
385386 }
386387
387388 DeployConfigType . assert ( config )
389+ const { Redis, ...rest } = config
390+
391+ expect ( ( ) => DeployConfigType . assert ( rest as any ) ) . to . throw (
392+ t . RuntimeTypeError
393+ )
388394 } )
389395} )
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import TupleType from './types/TupleType'
2020import UnionType from './types/UnionType'
2121import VoidType from './types/VoidType'
2222import Validation from './Validation'
23+ import RuntimeTypeError from './errorReporting/RuntimeTypeError'
2324
2425export {
2526 Type ,
@@ -44,6 +45,7 @@ export {
4445 UnionType ,
4546 VoidType ,
4647 Validation ,
48+ RuntimeTypeError ,
4749}
4850
4951export const any = ( ) : Type < any > => new AnyType ( )
You can’t perform that action at this time.
0 commit comments