test(spec: beautiful: get_font): convert user object to string before comparison (#3348)

This commit is contained in:
Yauhen Kirylau 2021-05-24 06:23:33 +02:00 committed by GitHub
parent 4c8ac65d4c
commit 59789bc2cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ describe("beautiful init", function()
-- Check beautiful.get_font and get_merged_font
it('Check beautiful.get_font', function()
assert.is_same(beautiful.get_font("Monospace Bold 12"),
beautiful.get_merged_font("Monospace 12", "Bold"))
assert.is_same(beautiful.get_font("Monospace Bold 12"):to_string(),
beautiful.get_merged_font("Monospace 12", "Bold"):to_string())
end)
-- Check beautiful.get_font_height