Skip to content
Snippets Groups Projects
Commit 3a411433 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

Merge branch 'feat/TU' into 'main'

feat: add first failing test

See merge request web-et-numerique/llle_project/enedis-sge-konnector!8
parents dcc4f661 4910d251
No related branches found
No related tags found
1 merge request!8feat: add first failing test
Pipeline #39574 passed
...@@ -28,6 +28,7 @@ desktop.ini ...@@ -28,6 +28,7 @@ desktop.ini
.floo .floo
.flooignore .flooignore
.idea/ .idea/
coverage/*
# Default # Default
# /!\ KEEP THIS SECTION THE LAST ONE # /!\ KEEP THIS SECTION THE LAST ONE
!.gitkeep !.gitkeep
const { buildAgregatedData } = require('../src/aggregate')
describe('buildAgregatedData', () => {
it('should return empty', async () => {
const reply = await buildAgregatedData([], 'com.enedis.day')
expect(reply).toEqual([])
})
})
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
"start": "node ./src/index.js", "start": "node ./src/index.js",
"dev": "cozy-konnector-dev", "dev": "cozy-konnector-dev",
"standalone": "cozy-konnector-standalone", "standalone": "cozy-konnector-standalone",
"test": "jest",
"test:cov": "jest --coverage",
"pretest": "npm run clean", "pretest": "npm run clean",
"clean": "rm -rf ./data", "clean": "rm -rf ./data",
"build": "webpack", "build": "webpack",
...@@ -40,6 +42,7 @@ ...@@ -40,6 +42,7 @@
"dependencies": { "dependencies": {
"cozy-konnector-libs": "4.52.1", "cozy-konnector-libs": "4.52.1",
"easy-soap-request": "^4.7.0", "easy-soap-request": "^4.7.0",
"jest": "^28.1.3",
"moment": "^2.29.3", "moment": "^2.29.3",
"moment-timezone": "^0.5.34", "moment-timezone": "^0.5.34",
"xml2js": "^0.4.23" "xml2js": "^0.4.23"
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment