We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9425ae9 commit 6431dd7Copy full SHA for 6431dd7
tests/stack/validate.test.ts
@@ -106,7 +106,15 @@ describe('unit test for validate', () => {
106
target: 'hello',
107
},
108
109
- };
110
- expect(() => validateYaml(invalidYaml as unknown as RawServerlessIac)).toThrow('Invalid yaml');
+ } as unknown as RawServerlessIac;
+ expect(() => validateYaml(invalidYaml)).toThrow('Invalid yaml');
111
+ });
112
+
113
+ it('should throw error when functions are not specified', () => {
114
+ const invalidYaml = {
115
+ ...jsonIac,
116
+ functions: null,
117
118
119
});
120
0 commit comments