Skip to content

Commit b3fbf72

Browse files
fix: stabilize coverage and integration checks
1 parent 942ea3b commit b3fbf72

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

migrations/20240108_130100_add_event_tags_table.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
const pino = require('pino')
2-
3-
const logger = pino({
4-
level: process.env.LOG_LEVEL || 'info',
5-
})
6-
71
exports.up = async function (knex) {
82
// Create the event_tags table
93
await knex.schema.createTable('event_tags', function (table) {
@@ -76,7 +70,7 @@ exports.up = async function (knex) {
7670
processedEvents++
7771
const currentPercentage = Math.floor(processedEvents / totalEvents * 100)
7872
if (currentPercentage > lastPercentage) {
79-
logger.info(`${new Date().toLocaleString()} Migration progress: ${currentPercentage}% (${processedEvents}/${totalEvents})`)
73+
console.log(`${new Date().toLocaleString()} Migration progress: ${currentPercentage}% (${processedEvents}/${totalEvents})`)
8074
lastPercentage = currentPercentage
8175
}
8276
}

test/unit/utils/settings.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ describe('SettingsStatic', () => {
198198

199199
expect(SettingsStatic.createSettings()).to.be.an('object')
200200

201-
expect(existsSyncStub).to.have.been.calledOnceWithExactly('/some/path/settings.json')
201+
expect(existsSyncStub).to.have.been.calledWithExactly('/some/path/settings.json')
202202
expect(getSettingsFileBasePathStub).to.have.been.calledOnce
203203
expect(saveSettingsStub).to.have.been.calledOnceWithExactly('/some/path/settings.json', Sinon.match.object)
204204
expect(loadSettingsStub).to.have.been.called

0 commit comments

Comments
 (0)