Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sql.test.js « javascript « test - github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0fb6b296542783612bb01e479c7b1aef0102ed52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* eslint-env node, jest */
/* global Sql */

import 'phpmyadmin/ajax';
import 'phpmyadmin/sql';

describe('SQL', () => {
    test('test URL encode', () => {
        const urlDecoded = Sql.urlDecode('phpmyadmin+the+web+%C3%BB%C3%AF');
        expect(urlDecoded).toEqual('phpmyadmin the web ûï');
    });
    test('test URL decode', () => {
        const urlEncoded = Sql.urlEncode('phpmyadmin the web ûï');
        expect(urlEncoded).toEqual('phpmyadmin+the+web+%C3%BB%C3%AF');
    });
});