[gjs: 1/2] Fix a test expectation for when the test is installed.
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/2] Fix a test expectation for when the test is installed.
- Date: Fri, 5 Mar 2021 04:45:02 +0000 (UTC)
commit d0dceb6daff235d44d6fb0ca7faf80935a57c6b6
Author: Olivier Tilloy <olivier tilloy canonical com>
Date: Wed Mar 3 23:27:20 2021 +0100
Fix a test expectation for when the test is installed.
Fixes: #385.
installed-tests/js/testESModules.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/installed-tests/js/testESModules.js b/installed-tests/js/testESModules.js
index 5b0cab6a..5f435154 100644
--- a/installed-tests/js/testESModules.js
+++ b/installed-tests/js/testESModules.js
@@ -46,7 +46,7 @@ describe('ES module imports', function () {
});
it('import.meta.url', function () {
- expect(import.meta.url).toMatch(/\/installed-tests\/js\/testESModules\.js$/);
+ expect(import.meta.url).toMatch(/\/installed-tests\/(gjs\/)?js\/testESModules\.js$/);
});
it('finds files relative to import.meta.url', function () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]