Skip to content

Commit

Permalink
fix: exclude timeStaged
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Mar 11, 2022
1 parent 4dbecfa commit 0f086f0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/validations/projects.validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export const baseSchema = {
projectLocations: Joi.array().items(locationSchema).min(1).optional(),
projectRatings: Joi.array().items(ratingSchema).min(1).optional(),
estimations: Joi.array().items(estimationSchema).min(1).optional(),
timeStaged: Joi.date().timestamp().optional(),
updatedAt: Joi.date().optional(),
createdAt: Joi.date().optional(),
};
Expand Down
1 change: 0 additions & 1 deletion src/validations/units.validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const unitsBaseSchema = {
.required(),
issuance: issuanceSchema.optional(),
labels: Joi.array().items(labelSchema).optional(),
timeStaged: Joi.date().timestamp().optional(),
updatedAt: Joi.date().optional(),
createdAt: Joi.date().optional(),
};
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/projects.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('Project Resource CRUD', function () {
expect(projects.length).to.equal(1);
});

it('gets optional paginated results', async function () {
it.only('gets optional paginated results', async function () {
// ?page=X&limit=10
const projectsPage1 = await testFixtures.getProjectByQuery({
page: 1,
Expand Down
1 change: 1 addition & 0 deletions tests/test-fixtures/project-fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const getProject = async (warehouseProjectId) => {

export const getProjectByQuery = async (query = {}) => {
const result = await supertest(app).get('/v1/projects').query(query);
console.log(result.body);
// expect(result.body).to.be.an('array');
expect(result.statusCode).to.equal(200);

Expand Down

0 comments on commit 0f086f0

Please sign in to comment.