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 1
1
import { describe , it } from 'mocha'
2
2
import * as t from './'
3
+ import { expect } from 'chai'
3
4
4
5
type ServiceScalingParameters = {
5
6
DesiredCount ?: number | null | undefined
@@ -385,5 +386,10 @@ describe(`smoke test`, function() {
385
386
}
386
387
387
388
DeployConfigType . assert ( config )
389
+ const { Redis, ...rest } = config
390
+
391
+ expect ( ( ) => DeployConfigType . assert ( rest as any ) ) . to . throw (
392
+ t . RuntimeTypeError
393
+ )
388
394
} )
389
395
} )
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import TupleType from './types/TupleType'
20
20
import UnionType from './types/UnionType'
21
21
import VoidType from './types/VoidType'
22
22
import Validation from './Validation'
23
+ import RuntimeTypeError from './errorReporting/RuntimeTypeError'
23
24
24
25
export {
25
26
Type ,
@@ -44,6 +45,7 @@ export {
44
45
UnionType ,
45
46
VoidType ,
46
47
Validation ,
48
+ RuntimeTypeError ,
47
49
}
48
50
49
51
export const any = ( ) : Type < any > => new AnyType ( )
You can’t perform that action at this time.
0 commit comments