Skip to content

Commit

Permalink
Merge pull request as-pect#51 from jtenner/beforeall-logs
Browse files Browse the repository at this point in the history
[Bug Fix] beforeall logs not being logged
  • Loading branch information
jtenner committed May 22, 2019
2 parents d158c4d + 8106920 commit 7e16908
Show file tree
Hide file tree
Showing 15 changed files with 157 additions and 116 deletions.
2 changes: 1 addition & 1 deletion as-pect.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ module.exports = {
reportVariance: true,
},
/** Use the summary reporter. */
reporter: new SummaryTestReporter(),
// reporter: new SummaryTestReporter(),
};
10 changes: 8 additions & 2 deletions assembly/__tests__/logs.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { Vec3 } from "./setup/Vec3";

beforeAll((): void => {
log<string>("before all outside describe");
});

afterAll((): void => {
log<string>("after all outside describe");
});

/**
* This test suite verifies that the log functions do not error when they are called.
*/
Expand Down Expand Up @@ -35,8 +43,6 @@ describe("logs", (): void => {
unchecked(array[i] = <u8>i);
}
log<ArrayBuffer>(array.buffer);
memory.free(changetype<usize>(array.buffer));
memory.free(changetype<usize>(array));
});

test("log a reference", (): void => {
Expand Down

0 comments on commit 7e16908

Please sign in to comment.