1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-23 18:29:15 +03:00
Files
phpmyadmin/tests/javascript/sql.test.ts
Maurício Meneghini Fauth 1d1c55e250 Move test directory to tests
- Related to #18512

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-11-30 10:47:42 -03:00

16 lines
466 B
TypeScript

/* eslint-env node, jest */
import 'phpmyadmin/sql';
describe('SQL', () => {
test('test URL encode', () => {
const urlDecoded = window.Sql.urlDecode('phpmyadmin+the+web+%C3%BB%C3%AF');
expect(urlDecoded).toEqual('phpmyadmin the web ûï');
});
test('test URL decode', () => {
const urlEncoded = window.Sql.urlEncode('phpmyadmin the web ûï');
expect(urlEncoded).toEqual('phpmyadmin+the+web+%C3%BB%C3%AF');
});
});