Skip to content

Commit

Permalink
Add unit test for create payment
Browse files Browse the repository at this point in the history
  • Loading branch information
leungkinghin-ct committed Mar 13, 2024
1 parent c3ce86d commit d11ace9
Show file tree
Hide file tree
Showing 7 changed files with 315 additions and 242 deletions.
2 changes: 1 addition & 1 deletion processor/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ module.exports = {
testEnvironment: 'node',
setupFiles: ['./src/jest.setup.ts'],
roots: ['./test'],
};
};
2 changes: 1 addition & 1 deletion processor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"scripts": {
"start": "node dist/main.js",
"start:dev": "node_modules/.bin/nodemon -q dist/main.js",
"lint": "prettier --check \"src/**/*.{ts,js,json}\" && eslint --ext .ts src",
"lint:fix": "prettier --write \"src/**/*.{ts,js,json}\" && eslint --fix --ext .ts src",
"lint": "prettier --check \"**/**/*.{ts,js,json}\" && eslint --ext .ts src",
"lint:fix": "prettier --write \"**/**/*.{ts,js,json}\" && eslint --fix --ext .ts src",
"build": "rm -rf /dist && tsc",
"dev": "ts-node src/main.ts",
"test": "jest --detectOpenHandles",
Expand Down Expand Up @@ -57,4 +57,4 @@
"ts-node": "10.9.2",
"typescript": "5.3.3"
}
}
}
11 changes: 5 additions & 6 deletions processor/test/sample.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { describe, test, expect } from '@jest/globals';

describe('sample-test-suite', () => {

// Please customize test cases below
test('sample-test-case', async () => {
const result = {};
expect(result).toStrictEqual({});
});
// Please customize test cases below
test('sample-test-case', async () => {
const result = {};
expect(result).toStrictEqual({});
});
});
Loading

0 comments on commit d11ace9

Please sign in to comment.