Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Jul 22, 2020
1 parent 17fe6e1 commit fc9b859
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@seneca/entity-util",
"version": "1.1.1",
"version": "1.2.0",
"description": "Collection of optional utilities for Seneca entities.",
"main": "entity-util.js",
"scripts": {
Expand Down
9 changes: 1 addition & 8 deletions test/entity-util.test.js
Expand Up @@ -385,7 +385,6 @@ lab.test('derive', async () => {
id: 'f01',
})


await si.post('sys:entity,derive:add', {
match: 'base:core,name:foo',
spec: {
Expand All @@ -400,6 +399,7 @@ lab.test('derive', async () => {
})

let foo_b = await si.entity('core/foo', { id$: 'f02', a: 2, b: 'b2' }).save$()

//console.log('foo_b', foo_b)
expect(foo_b.data$(false)).equal({
a: 2,
Expand All @@ -409,8 +409,6 @@ lab.test('derive', async () => {
id: 'f02',
})



let bar_a = await si.entity('core/bar', { id$: 'b01', a: 1, b: 'b' }).save$()
expect(bar_a.data$(false)).equal({
a: 1,
Expand All @@ -419,11 +417,6 @@ lab.test('derive', async () => {
})
bar_a.remove$()






var si1 = seneca_instance(null, { derive: { active: false } })

await si1.post('sys:entity,derive:add', derive_spec)
Expand Down

0 comments on commit fc9b859

Please sign in to comment.