Skip to content

Commit

Permalink
Temporary commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoichiro committed Sep 10, 2022
1 parent 70c368e commit f9cda89
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/models/KeyboardModel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ describe('KeymapItem', () => {
expect(subject.encoderId).toEqual(0);
});

test('encoder exists', () => {
const current = new Current();
const subject = new KeymapItem(
current,
'0,0\n0,6\n0,2\n0,8\n0.9\n1,1\n0,3\n0,5\n0,1\ne1\n0,7\n1,0'
);
expect(subject.encoderId).toEqual(1);
});

test('encoder not exists', () => {
const current = new Current();
const subject = new KeymapItem(current, '0,0');
Expand Down

0 comments on commit f9cda89

Please sign in to comment.