diff options
author | xuri <xuri.me@gmail.com> | 2019-08-21 23:03:34 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-08-21 23:03:34 +0800 |
commit | 407fb55c20a2524c4eccad9361120dee2a2719cd (patch) | |
tree | ae16f68165d5cbdcbdb1ac7675f1051fe10f6734 /styles_test.go | |
parent | da99334fca412c33e9e077703e7373b0899e8a87 (diff) |
Update the Godoc
Diffstat (limited to 'styles_test.go')
-rw-r--r-- | styles_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/styles_test.go b/styles_test.go index decfbb9..36a78ed 100644 --- a/styles_test.go +++ b/styles_test.go @@ -168,14 +168,14 @@ func TestSetConditionalFormat(t *testing.T) { func TestNewStyle(t *testing.T) { f := NewFile() - styleID, err := f.NewStyle(`{"font":{"bold":true,"italic":true,"family":"Berlin Sans FB Demi","size":36,"color":"#777777"}}`) + styleID, err := f.NewStyle(`{"font":{"bold":true,"italic":true,"family":"Times New Roman","size":36,"color":"#777777"}}`) if err != nil { t.Fatal(err) } styles := f.stylesReader() fontID := styles.CellXfs.Xf[styleID].FontID font := styles.Fonts.Font[fontID] - assert.Contains(t, font.Name.Val, "Berlin Sans FB Demi", "Stored font should contain font name") + assert.Contains(t, font.Name.Val, "Times New Roman", "Stored font should contain font name") assert.Equal(t, 2, styles.CellXfs.Count, "Should have 2 styles") } |