mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 07:13:32 +00:00
fix sequentialize tests
This commit is contained in:
@@ -119,8 +119,8 @@ describe('sequentialize decorator', () => {
|
|||||||
class Foo {
|
class Foo {
|
||||||
calls = 0;
|
calls = 0;
|
||||||
|
|
||||||
@sequentialize()
|
@sequentialize((args) => 'bar' + args[0])
|
||||||
bar(a) {
|
bar(a: any) {
|
||||||
this.calls++;
|
this.calls++;
|
||||||
return new Promise((res) => {
|
return new Promise((res) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -129,8 +129,8 @@ class Foo {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@sequentialize((args) => args[0])
|
@sequentialize((args) => 'baz' + args[0])
|
||||||
baz(a) {
|
baz(a: any) {
|
||||||
this.calls++;
|
this.calls++;
|
||||||
return new Promise((res) => {
|
return new Promise((res) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user