Skip to content

Commit ac44772

Browse files
tests: fix risk samples tests (#33)
Anonymity ranges can be multi-digit.
1 parent af00bc0 commit ac44772

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dlp/system-test/risk.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ test(`should perform k-map analysis on a single field`, async t => {
130130
`${cmd} kMap ${dataset} harmful ${topicName} ${subscriptionName} ${numericField} -t AGE -p ${testProjectId}`,
131131
cwd
132132
);
133-
t.regex(output, /Anonymity range: \[\d, \d\]/);
133+
t.regex(output, /Anonymity range: \[\d+, \d+\]/);
134134
t.regex(output, /Size: \d/);
135135
t.regex(output, /Values: \d{2}/);
136136
});
@@ -140,7 +140,7 @@ test(`should perform k-map analysis on multiple fields`, async t => {
140140
`${cmd} kMap ${dataset} harmful ${topicName} ${subscriptionName} ${numericField} ${stringBooleanField} -t AGE GENDER -p ${testProjectId}`,
141141
cwd
142142
);
143-
t.regex(output, /Anonymity range: \[\d, \d\]/);
143+
t.regex(output, /Anonymity range: \[\d+, \d+\]/);
144144
t.regex(output, /Size: \d/);
145145
t.regex(output, /Values: \d{2} Female/);
146146
});

0 commit comments

Comments
 (0)