Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Dec 30, 2024
1 parent 8b72104 commit 6fda020
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions queries/items/addResourceItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const debug = Debug('worktech-api:addResourceItem');
* @returns The system id for the new resource item.
*/
export async function addResourceItem(mssqlConfig, resourceItem) {
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
if (resourceItem.itemId.length > 15) {
throw new Error('itemId exceeds 15 characters');
}
Expand Down
1 change: 1 addition & 0 deletions queries/items/addResourceItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export async function addResourceItem(
mssqlConfig: mssql.config,
resourceItem: AddResourceItem
): Promise<BigIntString> {
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
if (resourceItem.itemId.length > 15) {
throw new Error('itemId exceeds 15 characters')
}
Expand Down
2 changes: 1 addition & 1 deletion test/equipment.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ await describe('queries/equipment', async () => {
assert.strictEqual(equipment, undefined);
});
await it('Adds a new piece of equipment, then updates it.', async () => {
const equipmentId = 'TEST-' + Math.round(Date.now() / 1000).toString();
const equipmentId = `TEST-${Math.round(Date.now() / 1000).toString()}`;
const equipmentDescription = randomUUID();
console.log(`Adding new equipment: ${equipmentId}`);
const systemId = await worktechApi.addEquipment(Object.assign({
Expand Down
2 changes: 1 addition & 1 deletion test/equipment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ await describe('queries/equipment', async () => {
})

await it('Adds a new piece of equipment, then updates it.', async () => {
const equipmentId = 'TEST-' + Math.round(Date.now() / 1000).toString()
const equipmentId = `TEST-${Math.round(Date.now() / 1000).toString()}`
const equipmentDescription = randomUUID()

console.log(`Adding new equipment: ${equipmentId}`)
Expand Down

0 comments on commit 6fda020

Please sign in to comment.