Skip to content

Commit

Permalink
yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
remicolin committed Feb 6, 2025
1 parent 1c31279 commit 26ea4e4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion circuits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@
"ts-mocha": "^10.0.0",
"ts-node": "^10.9.2"
}
}
}
26 changes: 24 additions & 2 deletions circuits/tests/other_circuits/prove_country_is_not_in_list.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,18 @@ describe('ProveCountryIsNotInList', function () {

it('should faild - country FRA is in the list', async () => {
try {
const forbiddenCountriesList = ['XXX', 'XXX', 'XXX', 'XXX', 'XXX', 'XXX', 'XXX', 'XXX', 'XXX', 'FRA'];
const forbiddenCountriesList = [
'XXX',
'XXX',
'XXX',
'XXX',
'XXX',
'XXX',
'XXX',
'XXX',
'XXX',
'FRA',
];
const inputs = {
dg1: formatInput(dg1),
forbidden_countries_list: formatInput(formatCountriesList(forbiddenCountriesList)),
Expand All @@ -83,7 +94,18 @@ describe('ProveCountryIsNotInList', function () {
});

it('should succeed - XRA and AXX are in the list, not FRA', async () => {
const forbiddenCountriesList = ['XFR', 'AXX', 'XXX', 'XXX', 'XXX', 'XXX', 'XXX', 'XFR', 'AXX', 'XXX'];
const forbiddenCountriesList = [
'XFR',
'AXX',
'XXX',
'XXX',
'XXX',
'XXX',
'XXX',
'XFR',
'AXX',
'XXX',
];
const inputs = {
dg1: formatInput(dg1),
forbidden_countries_list: formatInput(formatCountriesList(forbiddenCountriesList)),
Expand Down

0 comments on commit 26ea4e4

Please sign in to comment.