Skip to content

Commit

Permalink
wip: initialize municipalities per province remote excelfile in b4all
Browse files Browse the repository at this point in the history
  • Loading branch information
ciatph committed Aug 28, 2024
1 parent dbc0551 commit 32759ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions app/__tests__/municipalities/municipalitiesPerProvinceCount.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ const logger = new ColorLog()
const checkClass = require('../classInitialization/checkClass')
const { arrayToString } = require('../../src/lib/utils')

// Test using the latest 10-day PAGASA Excel file
const excelFile = new ExcelFile({
pathToFile: path.join(__dirname, 'excelfiledownload2.xlsx'),
url: process.env.EXCEL_FILE_URL
})

/* eslint-disable no-undef */
describe('Municipalities per province count match', () => {
// Test using the latest 10-day PAGASA Excel file
const excelFile = new ExcelFile({
pathToFile: path.join(__dirname, 'excelfiledownload2.xlsx'),
url: process.env.EXCEL_FILE_URL
beforeAll(async () => {
// Start file download
return await excelFile.init()
})

it('number of parsed/processed municipalities per province should match per province count from original data', async () => {
jest.setTimeout(20000)

// Start file download
await excelFile.init()

// Parsed/processed provinces from the Excel file
const allProvinces = excelFile.listAllProvinces(true)

Expand Down
2 changes: 1 addition & 1 deletion app/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
'__tests__/classInitialization/checkClass.js',
'__tests__/municipalities/createMunicipalityInstance.js',
// '__tests__/municipalities/municipalitiesCount.js',
'__tests__/municipalities/municipalitiesPerProvinceCount.js',
// '__tests__/municipalities/municipalitiesPerProvinceCount.js',
'__tests__/municipalities/index.js',
'__tests__/provinces/createInstances.js',
'__tests__/provinces/updateInstances.js',
Expand Down

0 comments on commit 32759ac

Please sign in to comment.