Codebase list node-unicode-match-property-value-ecmascript / d343a29
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
3 changed file(s) with 12 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
00 language: node_js
11 node_js:
2 - "4"
3 - "5"
4 - "6"
2 - "8"
3 - "10"
54 git:
65 depth: 1
00 {
11 "name": "unicode-match-property-value-ecmascript",
2 "version": "1.1.0",
2 "version": "1.2.0",
33 "description": "Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.",
44 "homepage": "https://github.com/mathiasbynens/unicode-match-property-value-ecmascript",
55 "main": "index.js",
2929 "devDependencies": {
3030 "ava": "*",
3131 "jsesc": "^2.5.2",
32 "unicode-property-value-aliases-ecmascript": "^1.0.4"
32 "unicode-property-value-aliases-ecmascript": "^1.1.0"
3333 },
3434 "scripts": {
3535 "build": "node scripts/build.js",
36 "test": "ava ./tests"
36 "test": "ava tests/tests.js"
3737 }
3838 }
0 import test from 'ava';
1 import matchPropertyValue from '../index.js';
0 const test = require('ava');
1 const matchPropertyValue = require('../index.js');
22
3 test(t => {
3 test('unicode-match-property-value-ecmascript', t => {
44 t.deepEqual(
55 matchPropertyValue('General_Category', 'L'),
66 'Letter'
2929 matchPropertyValue('Script_Extensions', 'Old_Persian'),
3030 'Old_Persian'
3131 );
32 t.deepEqual(
33 matchPropertyValue('Script_Extensions', 'Yezi'),
34 'Yezidi'
35 );
3236 });