File tree 4 files changed +27
-2
lines changed
4 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 5
5
" standard"
6
6
],
7
7
"env" : {
8
- "node" : true
8
+ "node" : true ,
9
+ "es6" : true
9
10
}
10
11
}
Original file line number Diff line number Diff line change
1
+ language : node_js
2
+
3
+ node_js :
4
+ - 4
5
+ - 5
6
+ - 6
Original file line number Diff line number Diff line change 12
12
" lib"
13
13
],
14
14
"scripts" : {
15
- "test" : " echo \" Error: no test specified \" && exit 1 "
15
+ "test" : " eslint . && ava "
16
16
},
17
17
"keywords" : [
18
18
" translate" ,
35
35
"xml2json" : " ^0.10.0"
36
36
},
37
37
"devDependencies" : {
38
+ "ava" : " ^0.16.0" ,
38
39
"eslint" : " ^3.6.1" ,
39
40
"eslint-config-standard" : " ^6.1.0" ,
40
41
"eslint-plugin-promise" : " ^2.0.1" ,
Original file line number Diff line number Diff line change
1
+ 'use strict'
2
+
3
+ import test from 'ava'
4
+ import suoxie from '../lib'
5
+
6
+ test ( 'main query' , t => {
7
+ suoxie ( 'internationalization' )
8
+ . then ( rst => {
9
+ t . truthy ( rst )
10
+ t . is ( typeof rst , 'object' )
11
+
12
+ t . truthy ( rst . results . result )
13
+ t . is ( Object . prototype . toString . call ( rst . results . result ) , '[object Array]' )
14
+
15
+ t . is ( rst . results . result . term , 'I18N' )
16
+ } )
17
+ } )
You can’t perform that action at this time.
0 commit comments