Skip to content

Commit

Permalink
add fail testcase github action
Browse files Browse the repository at this point in the history
  • Loading branch information
PingHuskar committed Jul 10, 2024
1 parent 6daeb33 commit e1c74a7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test BahtRext with Jest

on:
pull_request:
workflow_dispatch:
push:
branches: [main]

jobs:
unit-test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "14"
- run: npm install
- run: npm run test
9 changes: 8 additions & 1 deletion index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,11 @@ test(`IsValidText`, () => {
expect(BR.IsValidText(null)).toBe(false);
expect(BR.IsValidText(0)).toBe(false);
expect(BR.IsValidText(123)).toBe(false);
});
});


test(`IsValidText`, () => {
expect(true).toBe(true)
expect(false).toBe(!true)
expect(false).toBe(true)
})

0 comments on commit e1c74a7

Please sign in to comment.