-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b95e6cc
commit 1cd13ff
Showing
3 changed files
with
848 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const Parser = require('..') | ||
const assert = require('assert') | ||
import { assert, test } from 'vitest' | ||
import Parser from './index.ts' | ||
|
||
describe('Parser', () => { | ||
it('should emit "message" events', (done) => { | ||
test('should emit "message" events', () => | ||
new Promise((done) => { | ||
const parser = new Parser() | ||
let n = 0 | ||
|
||
|
@@ -44,5 +44,4 @@ describe('Parser', () => { | |
parser.write( | ||
':[email protected] JOIN #express\r\n', | ||
) | ||
}) | ||
}) | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.