File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 10
10
name ="viewport "
11
11
content ="width=device-width, initial-scale=1.0 "
12
12
/>
13
- < title > Vitery </ title >
13
+ < title > ab64 </ title >
14
14
</ head >
15
15
< body >
16
16
< div id ="app "> </ div >
Original file line number Diff line number Diff line change 1
1
import { atob , btoa } from 'ab64/ponyfill'
2
2
3
- const MIN = 16
4
-
5
- test . skipIf ( + process . versions . node < MIN ) (
6
- 'it should work same as the builtin' ,
7
- ( ) => {
8
- expect ( atob ( 'SGVsbG8gV29ybGQh' ) ) . toBe ( globalThis . atob ( 'SGVsbG8gV29ybGQh' ) )
9
- expect ( btoa ( 'Hello World!' ) ) . toBe ( globalThis . btoa ( 'Hello World!' ) )
10
- } ,
11
- )
3
+ test . runIf (
4
+ typeof globalThis . atob === 'function' &&
5
+ typeof globalThis . btoa === 'function' ,
6
+ ) ( 'it should work same as the builtin' , ( ) => {
7
+ expect ( atob ( 'SGVsbG8gV29ybGQh' ) ) . toBe ( globalThis . atob ( 'SGVsbG8gV29ybGQh' ) )
8
+ expect ( btoa ( 'Hello World!' ) ) . toBe ( globalThis . btoa ( 'Hello World!' ) )
9
+ } )
You can’t perform that action at this time.
0 commit comments