Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/jju/test/update/delete.yaml')
-rw-r--r--node_modules/jju/test/update/delete.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/node_modules/jju/test/update/delete.yaml b/node_modules/jju/test/update/delete.yaml
new file mode 100644
index 000000000..b964715d3
--- /dev/null
+++ b/node_modules/jju/test/update/delete.yaml
@@ -0,0 +1,36 @@
+input: |
+ {
+ "name": "test",
+ "version": "0.0.0",
+ "dependencies": {
+ "foo": "1.2.x",
+ "bar": ">= 1"
+ },
+ "bundleDependencies": [
+ "foo",
+ "bar"
+ ],
+ "license": "BSD-2-Clause"
+ }
+
+output: |
+ {
+ "name": "test",
+ "version": "0.0.0",
+ "dependencies": {
+ "foo": "1.2.x"
+ },
+ "bundleDependencies": [
+ "foo"
+ ],
+ "license": "BSD-2-Clause"
+ }
+
+test: !!js/function |
+ function(jju, input) {
+ obj = jju.parse(input)
+ obj.bundleDependencies.pop()
+ delete obj.dependencies.bar
+ return jju.update(input, obj, {mode:'json'})
+ }
+