MDL-65744 lib: Modify minify test to check properly
authorMathew May <mathewm@hotmail.co.nz>
Tue, 16 Jul 2019 09:01:05 +0000 (17:01 +0800)
committerMathew May <mathewm@hotmail.co.nz>
Tue, 16 Jul 2019 09:06:06 +0000 (17:06 +0800)
lib/tests/minify_test.php

index 2e3f9f8..cde85a5 100644 (file)
@@ -110,11 +110,11 @@ function hm()
 
         $files = array($testfile1, $testfile2);
 
-        $this->assertSame("function hm()\n{};\nfunction oh(){}", core_minify::js_files($files));
+        $this->assertSame("function hm(){};\nfunction oh(){}", core_minify::js_files($files));
 
         $files = array($testfile1, $testfile2, $testfile3);
 
-        $this->assertStringStartsWith("function hm()\n{};\nfunction oh(){};\n\n\n// Cannot read JS file ",
+        $this->assertStringStartsWith("function hm(){};\nfunction oh(){};\n\n\n// Cannot read JS file ",
             @core_minify::js_files($files));
 
         unlink($testfile1);