]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - test/status.js
rollup v2->v3, convert -require- to ESM style -import-
[nominatim-ui.git] / test / status.js
index b9fcea73c25f3247f8d70f1bc62fea25d4f4e0e8..78dc02017a5fc0213e5c685c3d9906b3eec93d17 100644 (file)
@@ -1,4 +1,4 @@
-const assert = require('assert');
+import assert from 'assert';
 
 describe('Status Page', function () {
   let page;
@@ -13,8 +13,10 @@ describe('Status Page', function () {
   });
 
   it('should have software version', async function () {
-    let status_details = await page.$eval('body',
-      el => el.textContent.match(/Software version.*\d+\.\d+/));
+    let status_details = await page.$eval(
+      'body',
+      el => el.textContent.match(/Software version.*\d+\.\d+/)
+    );
 
     assert.ok(!status_details[0].includes('undefined'));
   });