blob: 8f19c834d5494f33a6320d267a14701eaca10709 [file] [log] [blame]
describe('The test harness', () => {
it('runs the first test', () => {
expect(2+3).toBe(5);
});
it('runs the second test', () => {
expect(null).toBeFalsy();
});
describe('the CanvasKit loading promise', () => {
beforeEach(async () => {
await LoadCanvasKit;
});
it('has access to CanvasKit', () => {
const r = CanvasKit.LTRBRect(1, 2, 3, 4);
expect(r.constructor.name).toEqual('Float32Array');
});
});
})