Skip to content

Commit

Permalink
test: πŸ’ fixed sync function
Browse files Browse the repository at this point in the history
  • Loading branch information
waynewyang committed Dec 13, 2023
1 parent 87286db commit bb8860c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/capacity/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ import { Capacity } from "../../src/capacity"

//@ts-ignore
describe("Capacity Test", () => {
it("prettyBytes test(number)", async () => {
it("prettyBytes test(number)", () => {
const res = new Capacity(1024 * 1024)
assert.deepStrictEqual(res.prettyBytes(), "1 MiB")
})

it("prettyBytes test(string)", async () => {
it("prettyBytes test(string)", () => {
const res = new Capacity("1024")
assert.deepStrictEqual(res.prettyBytes(), "1 kiB")
})

it("plus test(string)", async () => {
it("plus test(string)", () => {
const capacity1 = new Capacity("1024")
const capacity2 = new Capacity("1024")

Expand Down

0 comments on commit bb8860c

Please sign in to comment.