config ok on jest to work with mjs import

This commit is contained in:
Tykayn 2023-06-29 17:53:15 +02:00 committed by tykayn
parent c5267dbeb5
commit 0cf6afa026

View File

@ -1,12 +1,12 @@
// import finders from "./finders.mjs";
const finders = require('./finders.mjs')
//
// describe('rangement file name', () => {
//
// test('detects date in file name', () => {
// expect(finders.findFormattedDate('2023-06-23T18.36.47 -- machin bidule.jpg')).toBe('2023-06-23T18.36.47');
// });
// })
describe('rangement file name', () => {
test('detects date in file name', () => {
expect(finders.findFormattedDate('2023-06-23T18.36.47 -- machin bidule.jpg')).toBe('2023-06-23T18.36.47');
});
})
console.log('finders', finders)
test('adding positive numbers is not zero', () => {