Commit 456d7e32 authored by Raghav Khanna's avatar Raghav Khanna

Update file size tests

parent f8db20ca
Pipeline #114253 failed with stages
in 1 minute and 21 seconds
...@@ -32,11 +32,13 @@ public class FileGenerateTest { ...@@ -32,11 +32,13 @@ public class FileGenerateTest {
@Test @Test
public void fileSizePdf() throws Exception { public void fileSizePdf() throws Exception {
assertTrue(HtmlConverter.stringToPdfFile("tony", "test").length() == 44102); long fileSize = HtmlConverter.stringToPdfFile("tony", "test").length();
assertTrue(fileSize >= 4000 && fileSize <= 50000);
} }
@Test @Test
public void fileSizeMd() throws Exception { public void fileSizeMd() throws Exception {
assertTrue(HtmlConverter.stringToMdFile("konstantinos", "test").length() == 20); long fileSize = HtmlConverter.stringToMdFile("konstantinos", "test").length();
assertTrue(fileSize >= 10 && fileSize <= 30);
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment