From 59789bc2cfd5e9153e8b74c8ec9de2a96eb9fe3e Mon Sep 17 00:00:00 2001 From: Yauhen Kirylau Date: Mon, 24 May 2021 06:23:33 +0200 Subject: [PATCH] test(spec: beautiful: get_font): convert user object to string before comparison (#3348) --- spec/beautiful/init_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/beautiful/init_spec.lua b/spec/beautiful/init_spec.lua index 07edb0ac8..e59aa1b8f 100644 --- a/spec/beautiful/init_spec.lua +++ b/spec/beautiful/init_spec.lua @@ -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