Skip to content

Commit

Permalink
Fixed crashing test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo Sonderegger committed May 28, 2021
1 parent 99fa353 commit ed39439
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

## [1.14.5] - 2021-05-28

### Fixed
- Crashed test suite.

## [1.14.4] - 2021-05-14

### Fixed
Expand Down Expand Up @@ -210,7 +215,8 @@ will not work anymore, until you pass a callback to `getTimeText`.
### Fixed
- Some tests with DOM usage.

[Unreleased]: https://github.com/chird/meteoJS/compare/v1.14.4...HEAD
[Unreleased]: https://github.com/chird/meteoJS/compare/v1.14.5...HEAD
[1.14.5]: https://github.com/chird/meteoJS/compare/v1.14.4...v1.14.5
[1.14.4]: https://github.com/chird/meteoJS/compare/v1.14.3...v1.14.4
[1.14.3]: https://github.com/chird/meteoJS/compare/v1.14.2...v1.14.3
[1.14.2]: https://github.com/chird/meteoJS/compare/v1.14.1...v1.14.2
Expand Down
9 changes: 8 additions & 1 deletion test/babel.helper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
require('core-js/stable');
require('regenerator-runtime/runtime');
const ignoreStyles = require('ignore-styles');
ignoreStyles.default(undefined, (module, filename) => {
if (/\.svg$/.test(filename))
module.exports = '<svg>SVG test node</svg>';
});
const register = require('@babel/register');
register({
ignore: []
ignore: [
/\/utils\.js$/
]
});
6 changes: 3 additions & 3 deletions test/meteoJS/timeline/animation/togglebutton.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ describe('Animation class, import via default', () => {
node: btn1
});
assert.equal(btn1.prop('class'), '', 'No class #1');
assert.equal(btn1.text(), '', 'Default stopped content #1'); // ▶
assert.equal(btn1.text(), 'SVG test node', 'Default stopped content #1'); // ▶
btn1.click()
assert.equal(btn1.prop('class'), '', 'No class #2');
assert.equal(btn1.text(), '', 'Default started content #1'); // ⏸
assert.equal(btn1.text(), 'SVG test node', 'Default started content #1'); // ⏸
btn1.click()
assert.equal(btn1.prop('class'), '', 'No class #3');
assert.equal(btn1.text(), '', 'Default stopped content #2'); // ▶
assert.equal(btn1.text(), 'SVG test node', 'Default stopped content #2'); // ▶

let btn2 = $('<button>');
new ToggleButton({
Expand Down

0 comments on commit ed39439

Please sign in to comment.