Put back file cleanups, and remove dead code in tests/lib/Template/JSResourceLocatorTest.php

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/38024/head
Côme Chilliet 3 years ago
parent 95d98b57ec
commit e252182d80
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 5
      tests/lib/Template/JSResourceLocatorTest.php

@ -135,8 +135,8 @@ class JSResourceLocatorTest extends \Test\TestCase {
$this->assertEquals($expectedWebRoot, $webRoot);
$this->assertEquals($expectedFile, $file);
//unlink($new_apps_path_symlink);
//$this->rrmdir($new_apps_path);
unlink($new_apps_path_symlink);
$this->rrmdir($new_apps_path);
}
public function testFindModuleJSWithFallback() {
@ -164,7 +164,6 @@ class JSResourceLocatorTest extends \Test\TestCase {
$resources = $locator->getResources();
$this->assertCount(3, $resources);
$expectedRoot = $new_apps_path . '/test-js-app';
$expectedWebRoot = \OC::$WEBROOT . '/js-apps-test/test-js-app';
$expectedFiles = ['module.mjs', 'both.mjs', 'plain.js'];

Loading…
Cancel
Save