File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ const code = `
199
199
*
200
200
* @param {PluginEvent } ev - A plugin event.
201
201
*/
202
- export function onHandleVirtual ( ev )
202
+ export function onHandleVirtualAsync ( ev )
203
203
{
204
204
ev . data . code . push ( { code, filePath : path . relative ( process . cwd ( ) , __filename ) } ) ;
205
205
}
Original file line number Diff line number Diff line change 1
1
import { assert } from 'chai' ;
2
2
3
- import { onHandleVirtual } from '../../src/index.js' ;
3
+ import { onHandleVirtualAsync } from '../../src/index.js' ;
4
4
5
5
const event = { data : { code : [ ] } } ;
6
6
7
7
suite ( 'Plugin:' , ( ) =>
8
8
{
9
9
test ( 'onHandleVirtual is function' , ( ) =>
10
10
{
11
- assert . isFunction ( onHandleVirtual ) ;
11
+ assert . isFunction ( onHandleVirtualAsync ) ;
12
12
} ) ;
13
13
14
- test ( 'onHandleVirtual returns code' , ( ) =>
14
+ test ( 'onHandleVirtualAsync returns code' , ( ) =>
15
15
{
16
- onHandleVirtual ( event ) ;
16
+ onHandleVirtualAsync ( event ) ;
17
17
18
18
assert . isArray ( event . data . code ) ;
19
19
assert . isString ( event . data . code [ 0 ] . code ) ;
You can’t perform that action at this time.
0 commit comments