Skip to content

Commit

Permalink
feat: udpate code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogtiti committed Apr 24, 2023
1 parent c9e0557 commit a004ba5
Show file tree
Hide file tree
Showing 40 changed files with 2,853 additions and 1,431 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off"
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/ban-ts-comment": "off"
}
}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@ yarn-error.log*
# typescript
*.tsbuildinfo
.idea
.swc
.swc

# extracted language files
/public/locales/$LOCALES

.eslintcache
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry="https://registry.npmmirror.com"
16 changes: 16 additions & 0 deletions __tests__/whitespace.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { isEmptyOrBlank } from "../src/utils/whitespace";

describe("WhiteSpace and empty string should return true", () => {
test("Empty string should return true", () => {
const emptyString = "";
expect(isEmptyOrBlank(emptyString)).toEqual(true);
})
test("WhiteSpace string should return true", () => {
const whiteSpaceString = " ";
expect(isEmptyOrBlank(whiteSpaceString)).toEqual(true);
})
test("NewLine should return true", () => {
const newLineString = "\n\n";
expect(isEmptyOrBlank(newLineString)).toEqual(true);
})
})
Loading

0 comments on commit a004ba5

Please sign in to comment.