Skip to content

Commit 6b308e6

Browse files
committed
Add a test for a custom Symbol class (#65)
1 parent d1eaaeb commit 6b308e6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

examples/vanilla/src/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ const something = {
1414
},
1515
}
1616

17+
class Symbol {}
18+
1719
fs.writeFileSync('./test.txt', 'Hello from fs!', 'utf-8')
1820

21+
console.log(Symbol)
1922
console.log(fs)
2023
console.log(fetch)
2124
console.log(resolve('.'))

examples/vanilla/test/e2e/main.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ test('logs the correct values', async ({ page }) => {
2525

2626
if (isBuild) {
2727
expect(logs).toEqual([
28+
'class Symbol {\n }',
2829
'{Volume: , vol: Volume, createFsFromVolume: , fs: Object, memfs: }',
2930
'function fetch() { [native code] }',
3031
'/',
@@ -43,6 +44,7 @@ test('logs the correct values', async ({ page }) => {
4344
expect(logs).toEqual([
4445
'[vite] connecting...',
4546
'[vite] connected.',
47+
'class Symbol {\n}',
4648
'{Volume: , vol: _Volume, createFsFromVolume: , fs: Object, memfs: }',
4749
'function fetch() { [native code] }',
4850
'/',

0 commit comments

Comments
 (0)