Skip to content

Commit 9137246

Browse files
committed
fix cleared prop name
1 parent f55b66f commit 9137246

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Queue.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ describe('Queue', () => {
120120
await queue.push(1)
121121
queue.clear()
122122

123-
expect(queue.clearead).toBe(true)
123+
expect(queue.cleared).toBe(true)
124124
})
125125

126126
test.skip('should reflect correct state in length, size, buff, and working properties', async () => {
@@ -372,6 +372,6 @@ describe('Queue', () => {
372372
})
373373

374374
afterEach(() => {
375-
queue && !queue.clearead && queue.clear()
375+
queue && !queue.cleared && queue.clear()
376376
})
377377
})

src/Queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export class Queue<T, R> {
199199
return this._buff.length
200200
}
201201

202-
get clearead(): boolean {
202+
get cleared(): boolean {
203203
return this._cleared
204204
}
205205
}

0 commit comments

Comments
 (0)