Skip to content

Commit b8435b9

Browse files
committed
fix: lint and failing tests
1 parent 3b891c7 commit b8435b9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

test/unit/src/events/subscribe-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ const assert = require('node:assert')
33
let subscribe
44

55
// Simple function tracker to replace sinon
6-
function createFake() {
6+
function createFake () {
77
const calls = []
8-
const fake = function(...args) {
8+
function fake (...args) {
99
calls.push(args)
1010
if (fake._callback) {
1111
fake._callback(...args)
@@ -15,7 +15,7 @@ function createFake() {
1515
return calls.some(call => JSON.stringify(call[0]) === JSON.stringify(expectedArg))
1616
}
1717
fake.yields = () => {
18-
fake._callback = function(...args) {
18+
fake._callback = function (...args) {
1919
const callback = args[args.length - 1]
2020
if (typeof callback === 'function') {
2121
callback()

test/unit/src/queues/subscribe-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ let mockSqsEvent = require('../../../mock/mock-sqs-event.json')
44
let subscribe
55

66
// Simple function tracker to replace sinon
7-
function createFake() {
7+
function createFake () {
88
const calls = []
99
let callCount = 0
10-
const fake = function(...args) {
10+
function fake (...args) {
1111
calls.push(args)
1212
callCount++
1313
if (fake._callback) {
@@ -16,7 +16,7 @@ function createFake() {
1616
}
1717
fake.calledOnce = () => callCount === 1
1818
fake.yields = () => {
19-
fake._callback = function(...args) {
19+
fake._callback = function (...args) {
2020
const callback = args[args.length - 1]
2121
if (typeof callback === 'function') {
2222
callback()

test/unit/src/static/index-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
const { test, mock } = require('node:test')
1+
const { test } = require('node:test')
22
const assert = require('node:assert')
33
const Module = require('module')
44

55
let manifestExists = true
66

77
// Mock fs module using Node.js native module mocking
88
const originalRequire = Module.prototype.require
9-
Module.prototype.require = function(id) {
9+
Module.prototype.require = function (id) {
1010
if (id === 'fs') {
1111
return {
1212
readFileSync: () => JSON.stringify({

test/unit/src/tables/factory-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const noop = () => {}
1010

1111
// Mock the legacy module using Node.js native module mocking
1212
const originalRequire = Module.prototype.require
13-
Module.prototype.require = function(id) {
13+
Module.prototype.require = function (id) {
1414
if (id === './legacy') {
1515
return () => ({ db: noop, doc: noop })
1616
}

0 commit comments

Comments
 (0)