Skip to content

Commit

Permalink
remove lorem (JS-0356) Found unused variables in TypeScript code #51
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSuddenJoy committed Jun 24, 2024
1 parent ee8783b commit db123ef
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions resources/js/tests/faker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import { Post, Topic } from "../types/models";
import faker from 'faker';

export function post(props?: any): Post {
const lorem = faker.lorem.text();

return Object.assign({
comments: [],
created_at: new Date(),
deleted_at: null,
html: lorem,
html: null,
id: faker.random.number(),
is_accepted: false,
is_locked: false,
Expand All @@ -23,7 +22,7 @@ export function post(props?: any): Post {
adm_access: false
},
score: 0,
text: lorem,
text: null,
updated_at: new Date(),
url: "",
}, props);
Expand All @@ -33,7 +32,7 @@ export function topic(props?: any): Topic {

return Object.assign({
id: faker.random.number(),
title: faker.lorem.string(),
title: faker.string(),
is_locked: false,
is_read: false,
is_sticky: false,
Expand Down

0 comments on commit db123ef

Please sign in to comment.