Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Fix school ordering tests
Browse files Browse the repository at this point in the history
  • Loading branch information
voidxnull committed Dec 6, 2017
1 parent 6b575ee commit a227215
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test-helpers/factories/school.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import { bookshelf, knex } from '../db';
const School = bookshelf.model('School');

const SchoolFactory = new Factory()
// toLowerCase is important to eliminate the difference between pg and js string sorting.
.attr('name', () => faker.company.companyName(0).toLowerCase())
.attr('name', () => faker.lorem.words(3))
.attr('url_name', ['name'], (name) => slug(name))
.attr('created_at', () => faker.date.past())
.attr('updated_at', ['created_at'], (date) => date);
Expand Down

0 comments on commit a227215

Please sign in to comment.