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