File tree Expand file tree Collapse file tree 5 files changed +18
-16
lines changed
packages/google-cloud-automl Expand file tree Collapse file tree 5 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 3
3
.coverage
4
4
.nyc_output
5
5
docs /
6
- out /
7
6
build /
8
- system-test /secrets.js
9
- system-test /* key.json
10
7
* .lock
11
8
.DS_Store
12
- google-cloud-logging-winston- * .tgz
13
- google-cloud-logging-bunyan- * .tgz
14
9
package-lock.json
Original file line number Diff line number Diff line change 11
11
"main" : " src/index.js" ,
12
12
"files" : [
13
13
" protos" ,
14
- " src" ,
15
- " AUTHORS" ,
16
- " COPYING"
14
+ " src"
17
15
],
18
16
"keywords" : [
19
17
" google apis client" ,
29
27
" Cloud AutoML API"
30
28
],
31
29
"scripts" : {
32
- "test" : " npm run cover" ,
33
- "cover" : " nyc --reporter=lcov mocha test/*.js && nyc report" ,
30
+ "test" : " nyc mocha" ,
34
31
"samples-test" : " cd samples/ && npm link ../ && npm test && cd ../" ,
35
- "test-no-cover" : " mocha test/*.js --timeout 600000" ,
36
- "lint" : " eslint src/ samples/ system-test/ test/" ,
32
+ "lint" : " eslint '**/*.js'" ,
37
33
"docs" : " jsdoc -c .jsdoc.js" ,
38
34
"system-test" : " mocha system-test/*.js --timeout 600000" ,
39
35
"fix" : " eslint '**/*.js' --fix"
Original file line number Diff line number Diff line change 2
2
env :
3
3
mocha : true
4
4
rules :
5
- node/no-unpublished-require : off
5
+ node/no-unsupported-features/es-syntax : off
6
6
no-console : off
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- console . warn ( 'No system tests available 😧' ) ;
15
+ const automl = require ( '../src' ) ;
16
+ const assert = require ( 'assert' ) ;
17
+
18
+ const client = new automl . AutoMlClient ( ) ;
19
+ const location = 'us-central1' ;
20
+ const projectId = process . env . GCLOUD_PROJECT ;
21
+
22
+ describe ( 'automl system tests' , ( ) => {
23
+ it ( 'should list all datasets' , async ( ) => {
24
+ const parent = client . locationPath ( projectId , location ) ;
25
+ const [ datasets ] = await client . listDatasets ( { parent} ) ;
26
+ assert . ok ( Array . isArray ( datasets ) ) ;
27
+ } ) ;
28
+ } ) ;
Original file line number Diff line number Diff line change 1
1
---
2
2
env :
3
3
mocha : true
4
- rules :
5
- node/no-unpublished-require : off
You can’t perform that action at this time.
0 commit comments