mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 00:59:29 +00:00
Don't use a date object for test data. Match DB.
This commit is contained in:
parent
5f1a4d71b3
commit
df0ecbceb7
3 changed files with 3 additions and 5 deletions
|
|
@ -5,7 +5,7 @@ Object {
|
|||
"fetch_skin_by_md5": Object {
|
||||
"archive_files": Array [
|
||||
Object {
|
||||
"date": "1995-12-17T11:24:00.000Z",
|
||||
"date": "2000-05-08T07:44:52.000Z",
|
||||
"file_md5": "a_fake_file_md5",
|
||||
"filename": null,
|
||||
"is_directory": false,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,5 @@ test("fromMd5", async () => {
|
|||
const ctx = new UserContext();
|
||||
const files = await ArchiveFileModel.fromMd5(ctx, "a_fake_md5");
|
||||
expect(files.length).toEqual(1);
|
||||
expect(files[0].getFileDate().getTime()).toEqual(
|
||||
new Date("1995-12-17T03:24:00").getTime()
|
||||
);
|
||||
expect(files[0].getFileDate().getTime()).toEqual(957771892000);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export async function seed(knex: Knex): Promise<any> {
|
|||
{
|
||||
skin_md5: "a_fake_md5",
|
||||
file_md5: "a_fake_file_md5",
|
||||
file_date: new Date("1995-12-17T03:24:00"),
|
||||
file_date: 957771892000,
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue