Skip to content

Commit f6a1727

Browse files
Adjust tests
1 parent e93ccc2 commit f6a1727

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-plotly",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"private": false,
55
"scripts": {
66
"serve": "vue-cli-service serve ./example/main.js --open",

tests/unit/plotly.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ describe("Plotly.vue", () => {
104104
expect(plotlyjs.newPlot.mock.calls.length).toBe(1);
105105
});
106106

107-
it("overrides responsive attribute", () => {
107+
it("allows responsive to be overridden attribute", () => {
108108
attrs = {
109109
responsive: true
110110
};
111111
wrapper = shallowMountPlotty();
112112

113113
expect(plotlyjs.newPlot).toHaveBeenCalledWith(vm.$el, data, layout, {
114-
responsive: false
114+
responsive: true
115115
});
116116
expect(plotlyjs.newPlot.mock.calls.length).toBe(1);
117117
});

0 commit comments

Comments
 (0)