2.0.3 • Published 3 years ago
@a11ycore/utils v2.0.3
@a11ycore/utils
The utils package is used by other packages to mount string / html elements and normalise data for our builds
Usage
const utils = require('@a11ycore/utils');
describe("utils", () => {
it("tests the mount function", () => {
const html = `<p> hi there </p>`;
const result = utils.mount(html);
expect(typeof result[0]).toBe('object');
expect(typeof result[1]).toBe('function');
});
it('should normalize the build', () => {
const normal = utils.normaliseBuild('1234', yourResults);
expect(normal.projectId).toBe('1234');
expect(normal.issues.length).toBe(2);
expect(normal.status).toBe('MODERATE');
});
});
2.0.3
3 years ago
2.0.2
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.8.5
3 years ago
1.8.4
3 years ago
1.8.3
4 years ago
1.8.2
4 years ago
1.8.1
4 years ago
1.7.3
4 years ago
1.7.2
4 years ago
1.7.1
4 years ago
1.7.0
4 years ago
1.6.0
4 years ago
1.5.2
4 years ago
1.5.1
4 years ago
1.4.2
4 years ago
1.5.0
4 years ago
1.4.1
4 years ago