Skip to content

Commit eb5e081

Browse files
committed
chore: fix test
1 parent 9ec34f7 commit eb5e081

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

rust/src/wrapper/chart/chart_data_label_position.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use rust_xlsxwriter as xlsx;
22
use wasm_bindgen::prelude::*;
33

4-
#[derive(Debug, Clone, Copy)]
4+
#[derive(Clone, Copy, PartialEq, Eq)]
55
#[wasm_bindgen]
66
pub enum ChartDataLabelPosition {
77
Default,

rust/src/wrapper/chart/chart_marker_type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use rust_xlsxwriter as xlsx;
22
use wasm_bindgen::prelude::*;
33

4-
#[derive(Debug, Clone, Copy)]
4+
#[derive(Clone, Copy, PartialEq, Eq)]
55
#[wasm_bindgen]
66
pub enum ChartMarkerType {
77
Square,

test/chart.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe("xlsx-wasm test", () => {
4141
});
4242
});
4343

44-
const chart = new Chart(ChartType.Line);
44+
const chart = new Chart(ChartType.Stock);
4545
const chartFont = new ChartFont().setName("Meiryo UI");
4646
const chartDataLabel = new ChartDataLabel().setFont(chartFont).showValue().setPosition(ChartDataLabelPosition.Left);
4747

test/expected/insert_chart.xlsx

5 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)