mirror of
https://github.com/bitwarden/browser
synced 2025-12-29 06:33:40 +00:00
Fix glob processing in npm. Ban single param parens (#257)
This commit is contained in:
@@ -72,7 +72,7 @@ class Foo {
|
||||
bar(a: number) {
|
||||
this.calls++;
|
||||
this.inflight++;
|
||||
return new Promise((res) => {
|
||||
return new Promise(res => {
|
||||
setTimeout(() => {
|
||||
expect(this.inflight).toBe(1);
|
||||
this.inflight--;
|
||||
@@ -85,7 +85,7 @@ class Foo {
|
||||
baz(a: number) {
|
||||
this.calls++;
|
||||
this.inflight++;
|
||||
return new Promise((res) => {
|
||||
return new Promise(res => {
|
||||
setTimeout(() => {
|
||||
expect(this.inflight).toBeLessThanOrEqual(5);
|
||||
this.inflight--;
|
||||
@@ -94,12 +94,12 @@ class Foo {
|
||||
});
|
||||
}
|
||||
|
||||
@sequentialize((args) => 'qux' + args[0])
|
||||
@sequentialize(args => 'qux' + args[0])
|
||||
@throttle(1, () => 'qux')
|
||||
qux(a: number) {
|
||||
this.calls++;
|
||||
this.inflight++;
|
||||
return new Promise((res) => {
|
||||
return new Promise(res => {
|
||||
setTimeout(() => {
|
||||
expect(this.inflight).toBe(1);
|
||||
this.inflight--;
|
||||
|
||||
Reference in New Issue
Block a user