]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Cleanup and upgrade unit tests environment
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 4 Mar 2017 15:47:53 +0000 (16:47 +0100)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 4 Mar 2017 16:39:48 +0000 (11:39 -0500)
commitc216c0af769c9b12bad39b5b889867d7294dee07
tree37891562698b17a8644a37b36e9341a511870f44
parentb4dfa38731973b28e76fd15f57d449ad2ee9b94f
Cleanup and upgrade unit tests environment

`karma.conf.ci.js` has been merged into `karma.conf.js` for local testing consistency: `gulp unittestWatch` has been replaced by `gulp unittest --watch` and thus use exactly the same config file. Upgrade to latest jasmine and karma packages and remove deprecated `gulp-karma` dependency (directly use `karma.Server` in gulp).

Split `test/mockContext.js` into smaller `test/jasmine.*` modules to make easier unit tests maintenance and finally, move all `*.test.js` files under the `test/specs` folder.
39 files changed:
gulpfile.js
karma.conf.ci.js [deleted file]
karma.conf.js
karma.coverage.conf.js
package.json
test/jasmine.context.js [new file with mode: 0644]
test/jasmine.index.js [new file with mode: 0644]
test/jasmine.matchers.js [new file with mode: 0644]
test/jasmine.utils.js [new file with mode: 0644]
test/mockContext.js [deleted file]
test/specs/controller.bar.tests.js [moved from test/controller.bar.tests.js with 100% similarity]
test/specs/controller.bubble.tests.js [moved from test/controller.bubble.tests.js with 100% similarity]
test/specs/controller.doughnut.tests.js [moved from test/controller.doughnut.tests.js with 100% similarity]
test/specs/controller.line.tests.js [moved from test/controller.line.tests.js with 100% similarity]
test/specs/controller.polarArea.tests.js [moved from test/controller.polarArea.tests.js with 100% similarity]
test/specs/controller.radar.tests.js [moved from test/controller.radar.tests.js with 100% similarity]
test/specs/core.controller.tests.js [moved from test/core.controller.tests.js with 100% similarity]
test/specs/core.datasetController.tests.js [moved from test/core.datasetController.tests.js with 100% similarity]
test/specs/core.element.tests.js [moved from test/core.element.tests.js with 100% similarity]
test/specs/core.helpers.tests.js [moved from test/core.helpers.tests.js with 100% similarity]
test/specs/core.interaction.tests.js [moved from test/core.interaction.tests.js with 100% similarity]
test/specs/core.layoutService.tests.js [moved from test/core.layoutService.tests.js with 100% similarity]
test/specs/core.legend.tests.js [moved from test/core.legend.tests.js with 100% similarity]
test/specs/core.plugin.tests.js [moved from test/core.plugin.tests.js with 100% similarity]
test/specs/core.scaleService.tests.js [moved from test/core.scaleService.tests.js with 100% similarity]
test/specs/core.title.tests.js [moved from test/core.title.tests.js with 100% similarity]
test/specs/core.tooltip.tests.js [moved from test/core.tooltip.tests.js with 100% similarity]
test/specs/element.arc.tests.js [moved from test/element.arc.tests.js with 100% similarity]
test/specs/element.line.tests.js [moved from test/element.line.tests.js with 100% similarity]
test/specs/element.point.tests.js [moved from test/element.point.tests.js with 100% similarity]
test/specs/element.rectangle.tests.js [moved from test/element.rectangle.tests.js with 100% similarity]
test/specs/global.defaults.tests.js [moved from test/defaultConfig.tests.js with 100% similarity]
test/specs/global.deprecations.tests.js [moved from test/global.deprecations.tests.js with 100% similarity]
test/specs/platform.dom.tests.js [moved from test/platform.dom.tests.js with 100% similarity]
test/specs/scale.category.tests.js [moved from test/scale.category.tests.js with 100% similarity]
test/specs/scale.linear.tests.js [moved from test/scale.linear.tests.js with 100% similarity]
test/specs/scale.logarithmic.tests.js [moved from test/scale.logarithmic.tests.js with 100% similarity]
test/specs/scale.radialLinear.tests.js [moved from test/scale.radialLinear.tests.js with 100% similarity]
test/specs/scale.time.tests.js [moved from test/scale.time.tests.js with 100% similarity]