Skip to content

Commit

Permalink
feat: Added fulfil_request
Browse files Browse the repository at this point in the history
  • Loading branch information
xlassix committed Aug 23, 2024
1 parent 5dc62db commit 16fe585
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"indentStyle": "space",
"lineWidth": 120
},
"files": {
"ignore": ["node_modules/*", "node_modules/**/*", "dist/"]
},
"organizeImports": { "enabled": true },
"linter": {
"enabled": true,
Expand Down
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// TODO: Improve coverage to 90%
const coverageToNumber = 40; // [0..100]
const coverageToNumber = 20; // [0..100]

/*
* For a detailed explanation regarding each configuration property and type check, visit:
Expand Down
12 changes: 12 additions & 0 deletions orchestrator/src/test/env.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,24 @@ describe(".env Check", () => {
wantErr: true,
errorMessage: '"roochPrivateKey" is not allowed to be empty',
},
{
name: "missing X data",
data: {
PREFERRED_CHAIN: "ROOCH",
ROOCH_ORACLE_ADDRESS: "0xf81628c3bf85c3fc628f29a3739365d4428101fbbecca0dcc7e3851f34faea6c",
ROOCH_PRIVATE_KEY: "0xf81628c3bf85c3fc628f29a3739365d4428101fbbecca0dcc7e3851f34faea6c",
},
wantErr: true,
errorMessage: '"xApiSecret" is not allowed to be empty',
},
{
name: "valid data",
data: {
PREFERRED_CHAIN: "ROOCH",
ROOCH_ORACLE_ADDRESS: "0xf81628c3bf85c3fc628f29a3739365d4428101fbbecca0dcc7e3851f34faea6c",
ROOCH_PRIVATE_KEY: "0xf81628c3bf85c3fc628f29a3739365d4428101fbbecca0dcc7e3851f34faea6c",
X_API_KEY: "key",
X_API_SECRET: "secret",
},
wantErr: false,
errorMessage: '"roochPrivateKey" is not allowed to be empty',
Expand Down

0 comments on commit 16fe585

Please sign in to comment.