Skip to content

Commit

Permalink
tests: fix risk samples tests (#33)
Browse files Browse the repository at this point in the history
Anonymity ranges can be multi-digit.
  • Loading branch information
alexander-fenster authored Mar 20, 2018
1 parent af00bc0 commit ac44772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlp/system-test/risk.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ test(`should perform k-map analysis on a single field`, async t => {
`${cmd} kMap ${dataset} harmful ${topicName} ${subscriptionName} ${numericField} -t AGE -p ${testProjectId}`,
cwd
);
t.regex(output, /Anonymity range: \[\d, \d\]/);
t.regex(output, /Anonymity range: \[\d+, \d+\]/);
t.regex(output, /Size: \d/);
t.regex(output, /Values: \d{2}/);
});
Expand All @@ -140,7 +140,7 @@ test(`should perform k-map analysis on multiple fields`, async t => {
`${cmd} kMap ${dataset} harmful ${topicName} ${subscriptionName} ${numericField} ${stringBooleanField} -t AGE GENDER -p ${testProjectId}`,
cwd
);
t.regex(output, /Anonymity range: \[\d, \d\]/);
t.regex(output, /Anonymity range: \[\d+, \d+\]/);
t.regex(output, /Size: \d/);
t.regex(output, /Values: \d{2} Female/);
});
Expand Down

0 comments on commit ac44772

Please sign in to comment.