Skip to content

Commit 68e7beb

Browse files
committed
Rename stopTrackingSession to stopTrackSession
1 parent bd1d3c5 commit 68e7beb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/__test__/solid-auth-client.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ describe('trackSession', () => {
411411
})
412412
})
413413

414-
describe('stopTrackingSession', () => {
414+
describe('stopTrackSession', () => {
415415
it('does not call callback on session change', async () => {
416416
expect.assertions(4)
417417

@@ -420,7 +420,7 @@ describe('stopTrackingSession', () => {
420420
expect(callback).toHaveBeenCalledTimes(1)
421421
expect(callback).toHaveBeenLastCalledWith(null)
422422

423-
instance.stopTrackingSession(callback)
423+
instance.stopTrackSession(callback)
424424

425425
const session = {}
426426
instance.emit('session', session)

src/solid-auth-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default class SolidAuthClient extends EventEmitter {
8686
this.on('session', callback)
8787
}
8888

89-
stopTrackingSession(callback: Function): void {
89+
stopTrackSession(callback: Function): void {
9090
this.removeListener('session', callback)
9191
}
9292

0 commit comments

Comments
 (0)