-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9aa666
commit d9d5014
Showing
22 changed files
with
976 additions
and
2,809 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
const mockClipboard = require('../jest/clipboard-mock'); | ||
const mockClipboard = require("../jest/clipboard-mock"); | ||
|
||
jest.mock('../dist/index.js', () => mockClipboard); | ||
jest.mock("../dist/index.js", () => mockClipboard); | ||
|
||
describe('mockClipboard', () => { | ||
const {getString, useClipboard} = require('../dist/index.js'); | ||
describe("mockClipboard", () => { | ||
const { getString, useClipboard } = require("../dist/index.js"); | ||
|
||
it('can get mock string', async () => { | ||
const result = await getString(); | ||
const expected = 'mockString'; | ||
expect(result).toBe(expected); | ||
}); | ||
it("can get mock string", async () => { | ||
const result = await getString(); | ||
const expected = "mockString"; | ||
expect(result).toBe(expected); | ||
}); | ||
|
||
it('can get useClipboardHook', async () => { | ||
const [result] = useClipboard(); | ||
const expected = 'mockString'; | ||
expect(result).toBe(expected); | ||
}); | ||
it("can get useClipboardHook", async () => { | ||
const [result] = useClipboard(); | ||
const expected = "mockString"; | ||
expect(result).toBe(expected); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"vcs": { | ||
"enabled": false, | ||
"clientKind": "git", | ||
"useIgnoreFile": false | ||
}, | ||
"files": { | ||
"ignoreUnknown": false, | ||
"ignore": ["dist", "example/ios", "example/android"] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "tab" | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "double" | ||
} | ||
} | ||
} |
Oops, something went wrong.