Skip to content

Commit 2e00798

Browse files
committed
add test for Plotly.version === pkg.version
1 parent ac522ee commit 2e00798

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/jasmine/tests/plot_api_test.js

+7
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@ var Lib = require('@src/lib');
55
var Scatter = require('@src/traces/scatter');
66
var Bar = require('@src/traces/bar');
77
var Legend = require('@src/components/legend');
8+
var pkg = require('../../../package.json');
89

910

1011
describe('Test plot api', function() {
1112
'use strict';
1213

14+
describe('Plotly.version', function() {
15+
it('should be the same as in the package.json', function() {
16+
expect(Plotly.version).toEqual(pkg.version);
17+
});
18+
});
19+
1320
describe('Plotly.restyle', function() {
1421
beforeEach(function() {
1522
spyOn(Plotly, 'plot');

0 commit comments

Comments
 (0)