forked from premieroctet/openchakra
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sosynpl[premieroctet#120] edited computeSuggestedFreelances, needs to…
… be tested
- Loading branch information
1 parent
9161520
commit 77622de
Showing
5 changed files
with
92 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const mongoose = require('mongoose') | ||
const moment = require('moment') | ||
const { MONGOOSE_OPTIONS } = require('../../server/utils/database') | ||
const Announce = require('../../server/models/Announce') | ||
const Job = require('../../server/models/Job') | ||
|
||
describe('Search', () => { | ||
beforeAll(async() => { | ||
const DBNAME=`test${moment().unix()}` | ||
await mongoose.connect(`mongodb://localhost/${DBNAME}`, MONGOOSE_OPTIONS) | ||
const job = await Job.create({ name: 'Developer', job_file: new mongoose.Types.ObjectId() }) | ||
const announce = await Announce.create({ | ||
user: new mongoose.Types.ObjectId(), | ||
job: job._id, | ||
title: 'Looking for Dev' | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters