@eeacms/volto-accordion-block
Advanced tools
Comparing version 10.4.5 to 10.4.6
@@ -7,2 +7,13 @@ ### Changelog | ||
### [10.4.6](https://github.com/eea/volto-accordion-block/compare/10.4.5...10.4.6) - 18 January 2024 | ||
#### :hammer_and_wrench: Others | ||
- test: [JENKINS] fix jest config, fail with logs on coverage [valentinab25 - [`12f799a`](https://github.com/eea/volto-accordion-block/commit/12f799a09c3dd56a3ba0e779d9e767fe53db6de9)] | ||
- test: [JENKINS] fix jest config, fail with logs on coverage [valentinab25 - [`937a4e1`](https://github.com/eea/volto-accordion-block/commit/937a4e1035237a655e94839b08dc4eb6a4061e79)] | ||
- test: [JENKINS] fix jest config, fail with logs on coverage [valentinab25 - [`fc0f16a`](https://github.com/eea/volto-accordion-block/commit/fc0f16a474aaeeb13edfbad374f564433ef92a53)] | ||
- test: [JENKINS] fix jest config, fail with logs on coverage [valentinab25 - [`8240697`](https://github.com/eea/volto-accordion-block/commit/82406970359c5fb3b21b18dd013db46626bb2944)] | ||
- test: [JENKINS] fix jest config, fail with logs on coverage [valentinab25 - [`1f88bab`](https://github.com/eea/volto-accordion-block/commit/1f88babd0ea2545731fa013833d66b08d1449fbb)] | ||
- test: [JENKINS] fix jest config, fail with logs on coverage [valentinab25 - [`e4312b7`](https://github.com/eea/volto-accordion-block/commit/e4312b7a23caf8285f3c28b50c12603dcca39c6e)] | ||
- test: [JENKINS] fix jest config, fail with logs on coverage [valentinab25 - [`afb8392`](https://github.com/eea/volto-accordion-block/commit/afb839211575a167905238f91aa24089da3f1a20)] | ||
### [10.4.5](https://github.com/eea/volto-accordion-block/compare/10.4.4...10.4.5) - 10 December 2023 | ||
@@ -9,0 +20,0 @@ |
@@ -12,8 +12,10 @@ module.exports = { | ||
'@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1', | ||
'@package/(.*)$': '<rootDir>/src/$1', | ||
'@root/(.*)$': '<rootDir>/src/$1', | ||
'@package/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1', | ||
'@root/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1', | ||
'@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1', | ||
'@eeacms/(.*?)/(.*)$': '<rootDir>/node_modules/@eeacms/$1/src/$2', | ||
'@plone/volto-slate': | ||
'@plone/volto-slate$': | ||
'<rootDir>/node_modules/@plone/volto/packages/volto-slate/src', | ||
'@plone/volto-slate/(.*)$': | ||
'<rootDir>/node_modules/@plone/volto/packages/volto-slate/src/$1', | ||
'~/(.*)$': '<rootDir>/src/$1', | ||
@@ -23,2 +25,5 @@ 'load-volto-addons': | ||
}, | ||
transformIgnorePatterns: [ | ||
'/node_modules/(?!(@plone|@root|@package|@eeacms)/).*/', | ||
], | ||
transform: { | ||
@@ -38,2 +43,5 @@ '^.+\\.js(x)?$': 'babel-jest', | ||
}, | ||
setupFilesAfterEnv: [ | ||
'<rootDir>/node_modules/@eeacms/volto-accordion-block/jest.setup.js', | ||
], | ||
}; |
{ | ||
"name": "@eeacms/volto-accordion-block", | ||
"version": "10.4.5", | ||
"version": "10.4.6", | ||
"description": "volto-accordion-block: Volto accordion block", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -7,11 +7,15 @@ import { emptyAccordion, getPanels, accordionBlockHasValue } from './util'; | ||
const result = emptyAccordion(2); | ||
const { | ||
blocks, | ||
blocks_layout: { items }, | ||
} = result; | ||
expect(Object.keys(result.blocks)).toHaveLength(2); | ||
expect(result.blocks_layout.items).toHaveLength(2); | ||
expect(Object.keys(blocks)).toHaveLength(2); | ||
expect(items).toHaveLength(2); | ||
for (const blockId in result.blocks) { | ||
expect(result.blocks[blockId]['@type']).toEqual( | ||
config.settings.defaultBlockType, | ||
); | ||
} | ||
Object.values(blocks).forEach((block) => { | ||
Object.values(block.blocks).forEach((innerBlock) => { | ||
expect(innerBlock['@type']).toEqual(config.settings.defaultBlockType); | ||
}); | ||
}); | ||
}); | ||
@@ -18,0 +22,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
209897
42
2531