-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add note to README, run prettier (#123)
* Add note to README, run prettier * Don't need circleci anymore
- Loading branch information
Bryan Clark
authored
Dec 16, 2020
1 parent
9bcc9b3
commit 5ad2dde
Showing
6 changed files
with
18 additions
and
57 deletions.
There are no files selected for viewing
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
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
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,20 +1,20 @@ | ||
import { LocalStorage } from "../src/localstorage"; | ||
import { LocalStorage } from '../src/localstorage'; | ||
|
||
describe("localstorage", () => { | ||
describe('localstorage', () => { | ||
let localStorage; | ||
|
||
beforeEach(() => { | ||
localStorage = new LocalStorage(jest); | ||
}); | ||
|
||
describe("getItem", () => { | ||
it("should return null if the item is undefined", () => { | ||
expect(localStorage.getItem("item")).toBeNull(); | ||
describe('getItem', () => { | ||
it('should return null if the item is undefined', () => { | ||
expect(localStorage.getItem('item')).toBeNull(); | ||
}); | ||
|
||
it("should return '' instead of null", () => { | ||
localStorage.setItem("item", ""); | ||
expect(localStorage.getItem("item")).toBe(""); | ||
localStorage.setItem('item', ''); | ||
expect(localStorage.getItem('item')).toBe(''); | ||
}); | ||
}); | ||
}); |
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
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