@@ -5,14 +5,14 @@ const helloworldContent = "吾有一言。曰「「問天地好在。」」。
5
5
6
6
describe ( "reader" , ( ) => {
7
7
describe ( "local" , ( ) => {
8
- it ( "import local files" , async ( ) => {
9
- const content = await reader ( "helloworld" , "./examples" ) ;
8
+ it ( "import local files" , ( ) => {
9
+ const content = reader ( "helloworld" , "./examples" ) ;
10
10
11
11
expect ( content ) . eq ( helloworldContent ) ;
12
12
} ) ;
13
13
14
- it ( "search for files" , async ( ) => {
15
- const content = await reader ( "helloworld" , [
14
+ it ( "search for files" , ( ) => {
15
+ const content = reader ( "helloworld" , [
16
16
"./some/invalid/dir" ,
17
17
"./lib" ,
18
18
"./examples"
@@ -21,9 +21,9 @@ describe("reader", () => {
21
21
expect ( content ) . eq ( helloworldContent ) ;
22
22
} ) ;
23
23
24
- it ( "not found" , async ( ) => {
24
+ it ( "not found" , ( ) => {
25
25
try {
26
- await reader ( "not_exists" , "./examples" ) ;
26
+ reader ( "not_exists" , "./examples" ) ;
27
27
} catch ( e ) {
28
28
expect ( e ) . to . be . an . instanceof ( ReferenceError ) ;
29
29
}
@@ -42,8 +42,8 @@ describe("reader", () => {
42
42
}
43
43
} ) ;
44
44
45
- it ( "load http contents" , async ( ) => {
46
- const content = await reader (
45
+ it ( "load http contents" , ( ) => {
46
+ const content = reader (
47
47
"helloworld" ,
48
48
"https://raw.githubusercontent.com/LingDong-/wenyan-lang/master/examples/" ,
49
49
{
@@ -54,8 +54,8 @@ describe("reader", () => {
54
54
expect ( content ) . eq ( helloworldContent ) ;
55
55
} ) ;
56
56
57
- it ( "load http contents in trusted hosts" , async ( ) => {
58
- const content = await reader (
57
+ it ( "load http contents in trusted hosts" , ( ) => {
58
+ const content = reader (
59
59
"helloworld" ,
60
60
"https://raw.githubusercontent.com/LingDong-/wenyan-lang/master/examples/" ,
61
61
{
@@ -68,8 +68,8 @@ describe("reader", () => {
68
68
expect ( content ) . eq ( helloworldContent ) ;
69
69
} ) ;
70
70
71
- it ( "search for http contents" , async ( ) => {
72
- const content = await reader (
71
+ it ( "search for http contents" , ( ) => {
72
+ const content = reader (
73
73
"helloworld" ,
74
74
[
75
75
"https://raw.githubusercontent.com/LingDong-/wenyan-lang/master/lib/" ,
0 commit comments