Skip to content

Commit 61e97dc

Browse files
New version
1 parent 3998116 commit 61e97dc

File tree

4 files changed

+26
-19
lines changed

4 files changed

+26
-19
lines changed

docs/app.js

Lines changed: 8 additions & 8 deletions
Large diffs are not rendered by default.

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": "0.6.0",
3+
"version": "0.7.0",
44
"private": false,
55
"scripts": {
66
"serve": "vue-cli-service serve ./example/main.js --open",

src/components/Plotly.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<div
3-
:id="id"
4-
v-resize:debounce.100="onResize"
5-
/>
2+
<div :id="id" v-resize:debounce.100="onResize" />
63
</template>
74
<script>
85
import Plotly from "plotly.js";

tests/unit/plotly.spec.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ describe("Plotly.vue", () => {
211211
const { error } = console;
212212

213213
beforeEach(() => {
214-
console.error = () => { };
214+
console.error = () => {};
215215
jest.clearAllMocks();
216216
update(wrapper);
217217
});
@@ -241,7 +241,7 @@ describe("Plotly.vue", () => {
241241
const { error } = console;
242242

243243
beforeEach(() => {
244-
console.error = () => { };
244+
console.error = () => {};
245245
jest.clearAllMocks();
246246
wrapper.setProps({ data: [{ data: "novo" }] });
247247
wrapper.vm.$attrs = { displayModeBar: "hover" };
@@ -271,7 +271,7 @@ describe("Plotly.vue", () => {
271271
const { error } = console;
272272

273273
beforeEach(() => {
274-
console.error = () => { };
274+
console.error = () => {};
275275
jest.clearAllMocks();
276276
const attrs = Object.assign({}, vm.$attrs);
277277
vm.$attrs = attrs;
@@ -327,9 +327,19 @@ describe("Plotly.vue", () => {
327327
const changeLayout = () => wrapper.setProps({ layout: { novo: "layout" } });
328328

329329
describe.each([
330-
[() => { changeData(); changeLayout(); }],
331-
[() => { changeLayout(); changeData(); }],
332-
])("when layout changes and data changes", (changes) => {
330+
[
331+
() => {
332+
changeData();
333+
changeLayout();
334+
}
335+
],
336+
[
337+
() => {
338+
changeLayout();
339+
changeData();
340+
}
341+
]
342+
])("when layout changes and data changes", changes => {
333343
beforeEach(() => {
334344
jest.clearAllMocks();
335345
changes();

0 commit comments

Comments
 (0)