Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
326 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var test = require('tape');
|
---|
| 2 | var ent = require('../');
|
---|
| 3 |
|
---|
| 4 | test('opts.numeric', function (t) {
|
---|
| 5 | var a = 'a & b & c';
|
---|
| 6 | var ax = 'a & b & c';
|
---|
| 7 | var b = '<html> © π " \'';
|
---|
| 8 | var bx = '<html> © π " '';
|
---|
| 9 |
|
---|
| 10 | t.equal(ent.encode(a), ax);
|
---|
| 11 | t.equal(ent.encode(b), bx);
|
---|
| 12 | t.end();
|
---|
| 13 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.