From bd308726a4a7ef1a0fb3ce1f8ef06c0df1285c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Weslley=20Ara=C3=BAjo?= <46850407+wellwelwel@users.noreply.github.com> Date: Tue, 26 Mar 2024 03:13:01 -0300 Subject: [PATCH] ci: fix test file name (#2530) * ci: fix test file name * ci: fix lint --- ...key-serialization.js => cache-key-serialization.test.cjs} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename test/unit/parsers/{cache-key-serialization.js => cache-key-serialization.test.cjs} (98%) diff --git a/test/unit/parsers/cache-key-serialization.js b/test/unit/parsers/cache-key-serialization.test.cjs similarity index 98% rename from test/unit/parsers/cache-key-serialization.js rename to test/unit/parsers/cache-key-serialization.test.cjs index e32c0270ee..841850e933 100644 --- a/test/unit/parsers/cache-key-serialization.js +++ b/test/unit/parsers/cache-key-serialization.test.cjs @@ -1,6 +1,6 @@ 'use strict'; -const assert = require('assert'); +const { assert } = require('poku'); const _keyFromFields = require('../../../lib/parsers/parser_cache.js')._keyFromFields; @@ -461,7 +461,8 @@ assert( const stringify = JSON.stringify; // Overwriting the native `JSON.stringify` -JSON.stringify = (value, replacer, space = 8) => stringify(value, replacer, space); +JSON.stringify = (value, replacer, space = 8) => + stringify(value, replacer, space); // Testing twice all existent tests needs to return 7 keys, since two of them expects to be the same assert(