Skip to content

Commit

Permalink
fonction back to classes
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisTherin committed Mar 29, 2024
1 parent 0f13520 commit 3ac5912
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/projectionDePopulation2019-2024/Ingest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jest.mock('../../src/projectionDePopulation2019-2024/download', () => ({
download: jest.fn(),
}))
*/
const DestDir = "./tmp"
const ingest = new projection.Ingest("test", DestDir+"/test.cvs")
const testDir = "./tmp"
const ingest = new projection.Ingest("test", testDir+"/test.cvs")

describe('Testing - projectionDePopulation2019-2024 Ingestion', () => {
afterAll(()=>{
Expand All @@ -22,13 +22,12 @@ describe('Testing - projectionDePopulation2019-2024 Ingestion', () => {

beforeEach(() => {
//jest.restoreAllMocks();
fs.mkdirSync( DestDir )
fs.mkdirSync( testDir )
})

it('createDir shall not create the directory when it allready exist', async () => {
// Test de la presence du diretory
expect(fs.existsSync(DestDir)).toBe(true)

// Test de la presence du directory
expect(fs.existsSync(testDir)).toBe(true)

await ingest.run()

Expand Down

0 comments on commit 3ac5912

Please sign in to comment.