Skip to content

Commit

Permalink
Test babel 11912
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Aug 5, 2020
1 parent 16836b1 commit 934bcc2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/typescript/cast/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -8,9 +8,17 @@ printWidth: 80
=====================================input======================================
let x = '123' as const;
// https://github.com/babel/babel/pull/11912
x as boolean <= y; // (x as boolean) <= y;
x as boolean ?? y; // (x as boolean) ?? y;
=====================================output=====================================
let x = "123" as const;
// https://github.com/babel/babel/pull/11912
(x as boolean) <= y; // (x as boolean) <= y;
(x as boolean) ?? y; // (x as boolean) ?? y;
================================================================================
`;

Expand Down
4 changes: 4 additions & 0 deletions tests/typescript/cast/as-const.ts
@@ -1 +1,5 @@
let x = '123' as const;

// https://github.com/babel/babel/pull/11912
x as boolean <= y; // (x as boolean) <= y;
x as boolean ?? y; // (x as boolean) ?? y;

0 comments on commit 934bcc2

Please sign in to comment.