snowtrack / snowfs

Invalid async keyword JS-0376
Anti-pattern
Minor
2 years ago3 years old
Async arrow function has no 'await' expression
 346  testIgnore(t, pattern, ignored, unignored);
 347});
 348
 349test('Ignore Manager [foo/bar[1-4]]', async (t) => { 350  const pattern = ['foo/bar[1-4].jpg'];
 351
 352  const ignored = [
Async arrow function has no 'await' expression
 329  testIgnore(t, pattern, ignored, unignored);
 330});
 331
 332test('Ignore Manager [debug?.log]', async (t) => { 333  // A question mark matches exactly one character.
 334  const pattern = ['debug?.log'];
 335
Async arrow function has no 'await' expression
 308  }
 309});
 310
 311test('Ignore Manager [debug[01].log]', async (t) => { 312  // Square brackets match a single character form the specified set.
 313  const pattern = ['debug[01].log'];
 314
Async arrow function has no 'await' expression
 288  }
 289});
 290
 291test('Ignore Manager [foo/*/baz], [foo/*/baz/], [foo/*/baz/**]', async (t) => { 292  const patterns = [['foo/*/baz'], ['foo/*/baz/'], ['foo/*/baz/**']];
 293  for (const pattern of patterns) {
 294    const ignored = [
Async arrow function has no 'await' expression
 266  testIgnore(t, pattern, ignored, unignored);
 267});
 268
 269test('Root Test 2 [/foo/bar] [/foo/bar/] [/foo/bar/**]', async (t) => { 270  for (const pattern of [['/foo/bar'], ['/foo/bar/'], ['/foo/bar/**']]) {
 271    const ignored = [
 272      'foo/bar',