refs #5652 feat:itemTrash_new
This commit is contained in:
parent
9d367b8299
commit
dd1f759e20
|
@ -10,4 +10,9 @@ UPDATE vn.address
|
||||||
isActive = 0
|
isActive = 0
|
||||||
WHERE id IN (6,47);
|
WHERE id IN (6,47);
|
||||||
|
|
||||||
INSERT INTO `salix`.`ACL` (id, model, property, accessType, permission, principalType, principalId) VALUES(698, 'Item', 'setVisibleDiscard', 'WRITE', 'ALLOW', 'ROLE', 'employee');
|
INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
|
||||||
|
VALUES('Item', 'setVisibleDiscard', 'WRITE', 'ALLOW', 'ROLE', 'employee');
|
||||||
|
|
||||||
|
INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
|
||||||
|
VALUES('Address', 'getAddress', 'READ', 'ALLOW', 'ROLE', 'employee');
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
const {models} = require('vn-loopback/server/server');
|
const {models} = require('vn-loopback/server/server');
|
||||||
|
|
||||||
describe('getAddressa()', () => {
|
describe('getAddress()', () => {
|
||||||
fit('return list of address last year', async() => {
|
fit('return list of address last year', async() => {
|
||||||
let response = await models.Addressa.getAddress();
|
let response = await models.Address.getAddress();
|
||||||
|
|
||||||
expect(response.length).toBeGreaterThan(0);
|
expect(response.length).toBeGreaterThan(0);
|
||||||
expect(response[0].addressFk).toEqual(1);
|
expect(response[0].addressFk).toEqual(1);
|
||||||
|
|
Loading…
Reference in New Issue