Skip to content

Commit

Permalink
Apply formatting and some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
suvash committed Feb 28, 2021
1 parent 4883672 commit 044933c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/layouts.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import layouts from "../src/layouts";

describe("layouts", () => {
it("should return an object of available layouts", () => {
expect(layouts).to.be.an('object');
expect(layouts).to.have.property('romanized');
expect(layouts).to.be.an("object");
expect(layouts).to.have.property("romanized");
});
});
3 changes: 1 addition & 2 deletions test/layouts/romanized.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ describe("romanized", () => {
});

it("should return undefined if no mapping exists", () => {
const asciiCodes = [...Array(255 + 1).keys()];
const asciiKeys = asciiCodes.map((key) => String.fromCharCode(key));
const asciiKeys = [...Array(256).keys()].map((key) => String.fromCharCode(key));
const filteredKeys = asciiKeys.filter((key) => testKeys.indexOf(key) < 0);

const receivedKeys = filteredKeys.map((key) => romanized.formatKey(key));
Expand Down

0 comments on commit 044933c

Please # to comment.