Added some new tests
This commit is contained in:
parent
0039a8b4ec
commit
918f873fea
15 changed files with 887 additions and 114 deletions
47
seeders/20200213121737-createSomeColors.js
Normal file
47
seeders/20200213121737-createSomeColors.js
Normal file
|
@ -0,0 +1,47 @@
|
|||
module.exports = {
|
||||
up: queryInterface => {
|
||||
return queryInterface.bulkInsert(
|
||||
"Colors",
|
||||
[
|
||||
{
|
||||
name: "Red",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date()
|
||||
},
|
||||
{
|
||||
name: "Miami blue",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date()
|
||||
},
|
||||
{
|
||||
name: "Sirius yellow",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date()
|
||||
},
|
||||
{
|
||||
name: "Sunflower yellow",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date()
|
||||
},
|
||||
{
|
||||
name: "Royal blue",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date()
|
||||
},
|
||||
{
|
||||
name: "White",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date()
|
||||
}
|
||||
],
|
||||
{}
|
||||
);
|
||||
},
|
||||
|
||||
down: queryInterface => {
|
||||
return Promise.all([
|
||||
queryInterface.bulkDelete("CarsColors", null, {}),
|
||||
queryInterface.bulkDelete("Colors", null, {})
|
||||
]);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue