Skip to content

Commit e14d061

Browse files
committed
Transform some more tests
1 parent 28a8aa1 commit e14d061

File tree

4 files changed

+255
-306
lines changed

4 files changed

+255
-306
lines changed

test/unit/modules.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ test.each([
5555
"export { x as default } from '...';",
5656
"export { default as x } from '...';",
5757
])("Export default keyword disallowed (%p)", exportStatement => {
58-
expect(() => util.transpileString(exportStatement)).toThrowExactError(
59-
TSTLErrors.UnsupportedDefaultExport(util.nodeStub)
60-
);
58+
util.testFunction(exportStatement)
59+
.disableSemanticCheck()
60+
.expectToHaveDiagnosticOfError(TSTLErrors.UnsupportedDefaultExport(util.nodeStub));
6161
});
6262

6363
test.each(["ke-bab", "dollar$", "singlequote'", "hash#", "s p a c e", "ɥɣɎɌͼƛಠ", "_̀ः٠‿"])(

0 commit comments

Comments
 (0)