Skip to content

Commit

Permalink
test: update test to pass pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ldhyen99 committed Sep 19, 2024
1 parent 0223763 commit ab6c7fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ describe('getFinalReport', () => {
JSON.stringify([
[{ colSpan: 3, content: 'UNTP Core Test Suite', hAlign: 'center' }],
[{ colSpan: 3, content: 'Runner version 0.0.1', hAlign: 'center' }],
['Credential Type', 'Version', 'Status'],
['aggregationEvent', 'v0.0.1', 'FAIL'],
['Credential Type', 'Version', 'URL', 'Status'],
['aggregationEvent', 'v0.0.1', '', 'FAIL'],
[
{
colSpan: 3,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
jest.setTimeout(30000);

import { jest } from '@jest/globals';
import fs from 'fs';
import { exec } from 'child_process';
Expand Down
2 changes: 1 addition & 1 deletion packages/untp-test-suite/src/interfaces/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function readJsonFile<T>(filePath: string): Promise<T | null> {

// Utility function to truncate strings
export const truncateString = (str: string | undefined, maxLength: number) => {
if (!str) return;
if (!str) return '';

if (str.length <= maxLength) {
return str;
Expand Down

0 comments on commit ab6c7fe

Please sign in to comment.