add npm command to test matching and notification services
This commit is contained in:
13
test/searchTest.js
Normal file
13
test/searchTest.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const { getRealEstateById } = require("../app/helpers/db/realEstate");
|
||||
const {
|
||||
findSearchRequestsForRealEstate
|
||||
} = require("../app/helpers/db/searchRequest");
|
||||
|
||||
(async () => {
|
||||
const realEstate = await getRealEstateById(53069);
|
||||
const searchRequestsForRealEstate = await findSearchRequestsForRealEstate(
|
||||
realEstate
|
||||
);
|
||||
|
||||
console.log(searchRequestsForRealEstate);
|
||||
})();
|
||||
Reference in New Issue
Block a user