Skip to content

Commit

Permalink
Bump version to 2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Nov 26, 2020
1 parent f4081d2 commit 8861dcd
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 178 deletions.
23 changes: 12 additions & 11 deletions __tests__/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ describe('Utils tests', () => {
it('checking asyncForEach', async () => {
const array: Array<string> = ['a', 'b', 'c'];
let concat = '';
await utils.asyncForEach(array, async function (
str: string
): Promise<void> {
concat += str;
});
await utils.asyncForEach(
array,
async function (str: string): Promise<void> {
concat += str;
}
);
expect(concat).toBe('abc');
});

Expand Down Expand Up @@ -83,12 +84,12 @@ describe('Utils tests', () => {
const runner_dir: string = process.env['RUNNER_TOOL_CACHE'] || '';
const script_path: string = path.join(runner_dir, 'test.sh');
await utils.writeScript('test.sh', testString);
await fs.readFile(script_path, function (
error: Error | null,
data: Buffer
) {
expect(testString).toBe(data.toString());
});
await fs.readFile(
script_path,
function (error: Error | null, data: Buffer) {
expect(testString).toBe(data.toString());
}
);
await cleanup(script_path);
});

Expand Down
Loading

0 comments on commit 8861dcd

Please sign in to comment.