diff options
Diffstat (limited to 'node_modules/jju/test/update/norm-object.yaml')
-rw-r--r-- | node_modules/jju/test/update/norm-object.yaml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/node_modules/jju/test/update/norm-object.yaml b/node_modules/jju/test/update/norm-object.yaml new file mode 100644 index 000000000..93878675b --- /dev/null +++ b/node_modules/jju/test/update/norm-object.yaml @@ -0,0 +1,32 @@ +input: | + { + "name": "test", + "version": "0.0.0", + "dependencies": { + "foobar": "*", + "bazquux": ">= 1.1.1" + }, + "license": "BSD-2-Clause" + } + +output: | + { + "name": "test", + "version": "0.0.0", + "dependencies": { + "foobar": "*", + "bazquux": ">= 1.1.1", + "whatever": "1.2.x", + "qwerty": "1" + }, + "license": "BSD-2-Clause" + } + +test: !!js/function | + function(jju, input) { + obj = jju.parse(input) + obj.dependencies.whatever = '1.2.x' + obj.dependencies.qwerty = '1' + return jju.update(input, obj, {mode:'json'}) + } + |