Signed-off-by: Fawzi Abdulfattah <iifawzie@gmail.com>
This commit is contained in:
Fawzi Abdulfattah 2023-01-15 04:04:41 +02:00
parent b8601170ee
commit 5bd1e909c7
No known key found for this signature in database
GPG Key ID: 197FA14E280B8A96

View File

@ -3,7 +3,7 @@
const Functions = require('phpmyadmin/functions');
describe('Functions', () => {
describe('Testing stringifyJSON', function() {
describe('Testing stringifyJSON', function () {
test('Should return the stringified JSON input', () => {
const stringifiedJSON = Functions.stringifyJSON('{ "lang": "php"}', null, 4);
expect(stringifiedJSON).toEqual('{\n "lang": "php"\n}');
@ -13,5 +13,5 @@ describe('Functions', () => {
const stringifiedJSON = Functions.stringifyJSON('{ "name": "notvalid}');
expect(stringifiedJSON).toEqual('{ "name": "notvalid}');
});
});
});
});