mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) improve support of NBSP
This commit is contained in:
parent
e129ab6a79
commit
42c8fd7bfe
8 changed files with 40 additions and 39 deletions
|
|
@ -5,21 +5,21 @@ const entity = require('../../common/entity');
|
|||
|
||||
test('cloudcmd: entity: encode', (t) => {
|
||||
const result = entity.encode('<hello> ');
|
||||
const expected = '<hello> ';
|
||||
const expected = '<hello> ';
|
||||
|
||||
t.equal(result, expected, 'should encode entity');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: entity: decode', (t) => {
|
||||
const result = entity.decode('<hello> ');
|
||||
const result = entity.decode('<hello> ');
|
||||
const expected = '<hello> ';
|
||||
|
||||
t.equal(result, expected, 'should decode entity');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: entity: encode', (t) => {
|
||||
test('cloudcmd: entity: encode quote', (t) => {
|
||||
const result = entity.encode('"hello"');
|
||||
const expected = '"hello"';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue