node_modules updated, buefy add to lib folder

This commit is contained in:
2019-06-04 14:29:48 +02:00
parent 0a3f6ff240
commit 5d28bc36e1
3957 changed files with 306575 additions and 21738 deletions
+27 -5
View File
@@ -1,3 +1,4 @@
'use strict';
/**
* Test dependencies.
@@ -1749,7 +1750,7 @@ describe('mpath', function(){
];
assert.deepEqual(t, o.array);
done();
})
});
it('array.prop', function(done){
mpath.set('comments.name', ['this', 'was', 'changed'], o);
@@ -1773,9 +1774,15 @@ describe('mpath', function(){
], o.comments);
done();
})
});
})
it('nested array', function(done) {
const obj = { arr: [[{ test: 41 }]] };
mpath.set('arr.test', [[42]], obj);
assert.deepEqual(obj.arr, [[{ test: 42 }]]);
done();
});
});
describe('multiple $ use', function(){
var o = doc();
@@ -1784,8 +1791,8 @@ describe('mpath', function(){
mpath.set('arr.$.arr.$.a', 35, o);
});
done();
})
})
});
});
it('has', function(done) {
assert.ok(mpath.has('a', { a: 1 }));
@@ -1846,6 +1853,21 @@ describe('mpath', function(){
done();
});
it('get() underneath subclassed array', function(done) {
class MyArray extends Array {}
const obj = {
arr: new MyArray()
};
obj.arr.push({ test: 2 });
const arr = mpath.get('arr.test', obj);
assert.equal(arr.constructor.name, 'Array');
assert.ok(!(arr instanceof MyArray));
done();
});
it('ignores setting a nested path that doesnt exist', function(done){
var o = doc();
assert.doesNotThrow(function(){