File tree 4 files changed +9
-4
lines changed
packages/google-cloud-dns
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 32
32
"scripts" : {
33
33
"docs" : " jsdoc -c .jsdoc.js" ,
34
34
"generate-scaffolding" : " repo-tools generate all && repo-tools generate lib_samples_readme -l samples/ --config ../.cloud-repo-tools.json" ,
35
- "lint" : " gts check && eslint samples/ " ,
35
+ "lint" : " gts check && eslint '**/*.js' " ,
36
36
"test" : " nyc mocha build/test" ,
37
37
"samples-test" : " cd samples/ && npm link ../ && npm test && cd ../" ,
38
38
"presystem-test" : " npm run compile" ,
44
44
"pretest" : " npm run compile"
45
45
},
46
46
"dependencies" : {
47
- "@google-cloud/common" : " ^0.29 .0" ,
47
+ "@google-cloud/common" : " ^0.30 .0" ,
48
48
"@google-cloud/paginator" : " ^0.1.0" ,
49
49
"@google-cloud/promisify" : " ^0.3.0" ,
50
50
"arrify" : " ^1.0.1" ,
Original file line number Diff line number Diff line change 1
1
---
2
2
rules :
3
3
no-console : off
4
+ node/no-missing-require : off
Original file line number Diff line number Diff line change 7
7
"engines" : {
8
8
"node" : " >=8"
9
9
},
10
+ "files" : [
11
+ " *.js"
12
+ ],
10
13
"scripts" : {
11
14
"test" : " mocha system-test --timeout 600000"
12
15
},
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import * as uuid from 'uuid';
24
24
const format = require ( 'string-format-obj' ) ;
25
25
26
26
import { DNS , Record } from '../src' ;
27
+ import { Metadata } from '@google-cloud/common' ;
27
28
28
29
const dns = new DNS ( ) ;
29
30
const DNS_DOMAIN = process . env . GCLOUD_TESTS_DNS_DOMAIN || 'gitnpm.com.' ;
@@ -128,7 +129,7 @@ describe('dns', () => {
128
129
129
130
describe ( 'Zones' , ( ) => {
130
131
it ( 'should get the metadata for a zone' , done => {
131
- ZONE . getMetadata ( ( err , metadata ) => {
132
+ ZONE . getMetadata ( ( err : Error , metadata : Metadata ) => {
132
133
assert . ifError ( err ) ;
133
134
assert . strictEqual ( metadata . name , ZONE_NAME ) ;
134
135
done ( ) ;
@@ -236,7 +237,7 @@ describe('dns', () => {
236
237
assert . ifError ( err ) ;
237
238
const change = changes ! [ 0 ] ;
238
239
const expectedMetadata = change . metadata ;
239
- change . getMetadata ( ( err , metadata ) => {
240
+ change . getMetadata ( ( err : Error , metadata : Metadata ) => {
240
241
assert . ifError ( err ) ;
241
242
delete metadata . status ;
242
243
delete expectedMetadata . status ;
You can’t perform that action at this time.
0 commit comments