Skip to content

Commit ae2b575

Browse files
greenkeeper[bot]stephenplusplus
authored andcommitted
Update dependencies to enable Greenkeeper 🌴 (#13)
* chore(package): update dependencies * Prettier.
1 parent 9ee9326 commit ae2b575

3 files changed

Lines changed: 11 additions & 33 deletions

File tree

dlp/system-test/inspect.test.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,11 @@ test(`should have a minLikelihood option`, async t => {
233233

234234
test(`should have a maxFindings option`, async t => {
235235
const promiseA = tools.runAsync(
236-
`${
237-
cmd
238-
} string "My email is gary@example.com and my phone number is (223) 456-7890." -f 1`,
236+
`${cmd} string "My email is gary@example.com and my phone number is (223) 456-7890." -f 1`,
239237
cwd
240238
);
241239
const promiseB = tools.runAsync(
242-
`${
243-
cmd
244-
} string "My email is gary@example.com and my phone number is (223) 456-7890." -f 2`,
240+
`${cmd} string "My email is gary@example.com and my phone number is (223) 456-7890." -f 2`,
245241
cwd
246242
);
247243

@@ -273,15 +269,11 @@ test(`should have an option to include quotes`, async t => {
273269

274270
test(`should have an option to filter results by infoType`, async t => {
275271
const promiseA = tools.runAsync(
276-
`${
277-
cmd
278-
} string "My email is gary@example.com and my phone number is (223) 456-7890."`,
272+
`${cmd} string "My email is gary@example.com and my phone number is (223) 456-7890."`,
279273
cwd
280274
);
281275
const promiseB = tools.runAsync(
282-
`${
283-
cmd
284-
} string "My email is gary@example.com and my phone number is (223) 456-7890." -t PHONE_NUMBER`,
276+
`${cmd} string "My email is gary@example.com and my phone number is (223) 456-7890." -t PHONE_NUMBER`,
285277
cwd
286278
);
287279

dlp/system-test/redact.test.js

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,23 @@ test.before(tools.checkCredentials);
3131
// redact_string
3232
test(`should redact multiple sensitive data types from a string`, async t => {
3333
const output = await tools.runAsync(
34-
`${
35-
cmd
36-
} string "I am Gary and my phone number is (123) 456-7890." REDACTED -t US_MALE_NAME PHONE_NUMBER`,
34+
`${cmd} string "I am Gary and my phone number is (123) 456-7890." REDACTED -t US_MALE_NAME PHONE_NUMBER`,
3735
cwd
3836
);
3937
t.is(output, 'I am REDACTED and my phone number is REDACTED.');
4038
});
4139

4240
test(`should redact a single sensitive data type from a string`, async t => {
4341
const output = await tools.runAsync(
44-
`${
45-
cmd
46-
} string "I am Gary and my phone number is (123) 456-7890." REDACTED -t PHONE_NUMBER`,
42+
`${cmd} string "I am Gary and my phone number is (123) 456-7890." REDACTED -t PHONE_NUMBER`,
4743
cwd
4844
);
4945
t.is(output, 'I am Gary and my phone number is REDACTED.');
5046
});
5147

5248
test(`should report string redaction handling errors`, async t => {
5349
const output = await tools.runAsync(
54-
`${
55-
cmd
56-
} string "My name is Gary and my phone number is (123) 456-7890." REDACTED -t BAD_TYPE`,
50+
`${cmd} string "My name is Gary and my phone number is (123) 456-7890." REDACTED -t BAD_TYPE`,
5751
cwd
5852
);
5953
t.regex(output, /Error in redactString/);
@@ -63,9 +57,7 @@ test(`should report string redaction handling errors`, async t => {
6357
test(`should redact a single sensitive data type from an image`, async t => {
6458
const testName = `redact-multiple-types`;
6559
const output = await tools.runAsync(
66-
`${cmd} image ${testImage} ${
67-
testName
68-
}.result.png -t PHONE_NUMBER EMAIL_ADDRESS`,
60+
`${cmd} image ${testImage} ${testName}.result.png -t PHONE_NUMBER EMAIL_ADDRESS`,
6961
cwd
7062
);
7163

@@ -113,15 +105,11 @@ test(`should report image redaction handling errors`, async t => {
113105
// CLI options
114106
test(`should have a minLikelihood option`, async t => {
115107
const promiseA = tools.runAsync(
116-
`${
117-
cmd
118-
} string "My phone number is (123) 456-7890." REDACTED -t PHONE_NUMBER -m VERY_LIKELY`,
108+
`${cmd} string "My phone number is (123) 456-7890." REDACTED -t PHONE_NUMBER -m VERY_LIKELY`,
119109
cwd
120110
);
121111
const promiseB = tools.runAsync(
122-
`${
123-
cmd
124-
} string "My phone number is (123) 456-7890." REDACTED -t PHONE_NUMBER -m UNLIKELY`,
112+
`${cmd} string "My phone number is (123) 456-7890." REDACTED -t PHONE_NUMBER -m UNLIKELY`,
125113
cwd
126114
);
127115

dlp/system-test/risk.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ test(`should perform l-diversity analysis on a single field`, async t => {
112112

113113
test(`should perform l-diversity analysis on multiple fields`, async t => {
114114
const output = await tools.runAsync(
115-
`${cmd} lDiversity ${dataset} harmful ${uniqueField} ${numericField} ${
116-
repeatedField
117-
}`,
115+
`${cmd} lDiversity ${dataset} harmful ${uniqueField} ${numericField} ${repeatedField}`,
118116
cwd
119117
);
120118
t.regex(output, /Quasi-ID values: \{\d{2}, \d{4} \d{4} \d{4} \d{4}\}/);

0 commit comments

Comments
 (0)