Update upstream source from tag 'upstream/1.2.0+ds'
Update to upstream version '1.2.0+ds'
with Debian dir f23bbabaa15a3b2d9d7bf4eaf9c90430ac0022ab
Julien Puydt
4 years ago
0 | 0 |
language: node_js
|
1 | 1 |
node_js:
|
2 | |
- "4"
|
3 | |
- "5"
|
4 | |
- "6"
|
|
2 |
- "8"
|
|
3 |
- "10"
|
5 | 4 |
git:
|
6 | 5 |
depth: 1
|
0 | 0 |
{
|
1 | 1 |
"name": "unicode-match-property-value-ecmascript",
|
2 | |
"version": "1.1.0",
|
|
2 |
"version": "1.2.0",
|
3 | 3 |
"description": "Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.",
|
4 | 4 |
"homepage": "https://github.com/mathiasbynens/unicode-match-property-value-ecmascript",
|
5 | 5 |
"main": "index.js",
|
|
29 | 29 |
"devDependencies": {
|
30 | 30 |
"ava": "*",
|
31 | 31 |
"jsesc": "^2.5.2",
|
32 | |
"unicode-property-value-aliases-ecmascript": "^1.0.4"
|
|
32 |
"unicode-property-value-aliases-ecmascript": "^1.1.0"
|
33 | 33 |
},
|
34 | 34 |
"scripts": {
|
35 | 35 |
"build": "node scripts/build.js",
|
36 | |
"test": "ava ./tests"
|
|
36 |
"test": "ava tests/tests.js"
|
37 | 37 |
}
|
38 | 38 |
}
|
0 | |
import test from 'ava';
|
1 | |
import matchPropertyValue from '../index.js';
|
|
0 |
const test = require('ava');
|
|
1 |
const matchPropertyValue = require('../index.js');
|
2 | 2 |
|
3 | |
test(t => {
|
|
3 |
test('unicode-match-property-value-ecmascript', t => {
|
4 | 4 |
t.deepEqual(
|
5 | 5 |
matchPropertyValue('General_Category', 'L'),
|
6 | 6 |
'Letter'
|
|
29 | 29 |
matchPropertyValue('Script_Extensions', 'Old_Persian'),
|
30 | 30 |
'Old_Persian'
|
31 | 31 |
);
|
|
32 |
t.deepEqual(
|
|
33 |
matchPropertyValue('Script_Extensions', 'Yezi'),
|
|
34 |
'Yezidi'
|
|
35 |
);
|
32 | 36 |
});
|