summaryrefslogtreecommitdiff
path: root/styles_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'styles_test.go')
-rw-r--r--styles_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/styles_test.go b/styles_test.go
index e6faccb..a536700 100644
--- a/styles_test.go
+++ b/styles_test.go
@@ -169,9 +169,7 @@ func TestSetConditionalFormat(t *testing.T) {
func TestNewStyle(t *testing.T) {
f := NewFile()
styleID, err := f.NewStyle(`{"font":{"bold":true,"italic":true,"family":"Times New Roman","size":36,"color":"#777777"}}`)
- if err != nil {
- t.Fatal(err)
- }
+ assert.NoError(t, err)
styles := f.stylesReader()
fontID := styles.CellXfs.Xf[styleID].FontID
font := styles.Fonts.Font[fontID]