Skip to content

Commit

Permalink
feat: async style override test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtwinkle committed Aug 24, 2022
1 parent 3c3e491 commit d48a293
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions excelizeam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,14 +508,14 @@ func TestExcelizeam_Async(t *testing.T) {
Left: &excelizeam.BorderItem{Style: excelizestyle.BorderStyleDash2, Color: excelizestyle.BorderColorBlack},
Right: &excelizeam.BorderItem{Style: excelizestyle.BorderStyleDash2, Color: excelizestyle.BorderColorBlack},
Inside: &excelizeam.BorderItem{Style: excelizestyle.BorderStyleDash2, Color: excelizestyle.BorderColorBlack},
})
}, false)
w.SetBorderRangeAsync(6, 6, 10, 10, excelizeam.BorderRange{
Top: &excelizeam.BorderItem{Style: excelizestyle.BorderStyleContinuous2, Color: excelizestyle.BorderColorBlack},
Bottom: &excelizeam.BorderItem{Style: excelizestyle.BorderStyleContinuous2, Color: excelizestyle.BorderColorBlack},
Left: &excelizeam.BorderItem{Style: excelizestyle.BorderStyleContinuous2, Color: excelizestyle.BorderColorBlack},
Right: &excelizeam.BorderItem{Style: excelizestyle.BorderStyleContinuous2, Color: excelizestyle.BorderColorBlack},
Inside: &excelizeam.BorderItem{Style: excelizestyle.BorderStyleContinuous2, Color: excelizestyle.BorderColorBlack},
})
}, false)
},
},
"SetBorderRangeAsync-override_error": {
Expand All @@ -533,7 +533,7 @@ func TestExcelizeam_Async(t *testing.T) {
Left: &excelizeam.BorderItem{Style: excelizestyle.BorderStyleContinuous2, Color: excelizestyle.BorderColorBlack},
Right: &excelizeam.BorderItem{Style: excelizestyle.BorderStyleContinuous2, Color: excelizestyle.BorderColorBlack},
Inside: &excelizeam.BorderItem{Style: excelizestyle.BorderStyleContinuous2, Color: excelizestyle.BorderColorBlack},
})
}, false)
},
wantErr: excelizeam.ErrOverrideCellStyle,
},
Expand Down

0 comments on commit d48a293

Please sign in to comment.