Skip to content

Commit

Permalink
update snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco García committed Sep 11, 2024
1 parent 048fcfd commit deaf901
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,14 @@ class Interceptors<Interceptor> {
this._fns = [];
}
clear() {
this._fns = [];
}
exists(fn: Interceptor) {
return this._fns.indexOf(fn) !== -1;
}
eject(fn: Interceptor) {
const index = this._fns.indexOf(fn);
if (index !== -1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,14 @@ class Interceptors<Interceptor> {
this._fns = [];
}
clear() {
this._fns = [];
}
exists(fn: Interceptor) {
return this._fns.indexOf(fn) !== -1;
}
eject(fn: Interceptor) {
const index = this._fns.indexOf(fn);
if (index !== -1) {
Expand Down

0 comments on commit deaf901

Please sign in to comment.