corrected a typo
This commit is contained in:
parent
054b112223
commit
bce66899c5
|
@ -1,6 +1,6 @@
|
|||
const models = require('vn-loopback/server/server').models;
|
||||
|
||||
describe('Buy latests buys filter()', () => {
|
||||
describe('Entry latests buys filter()', () => {
|
||||
it('should return the entry matching "search"', async() => {
|
||||
const tx = await models.Buy.beginTransaction({});
|
||||
const options = {transaction: tx};
|
||||
|
@ -12,7 +12,7 @@ describe('Buy latests buys filter()', () => {
|
|||
}
|
||||
};
|
||||
|
||||
const results = await models.Buy.latestBuysFilter(ctx);
|
||||
const results = await models.Buy.latestBuysFilter(ctx, options);
|
||||
const firstBuy = results[0];
|
||||
|
||||
expect(results.length).toEqual(1);
|
||||
|
|
Loading…
Reference in New Issue