Skip to content

Commit

Permalink
Add test for pasting rank without changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Oct 30, 2024
1 parent cb5cdf7 commit dc8470c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/ops.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@ describe('Data pasting', () => {

expect(document.getElementById("wrapper").innerHTML).toBe(expected)
});

test('paste second time rank without changes', () => {
toTest.dataPasted(input)
toTest.dataPasted(input)

const filePath = path.join(__dirname, 'data/Top100_base_expected.txt');
const expected = fs.readFileSync(filePath, 'utf8');

expect(document.getElementById("wrapper").innerHTML).toBe(expected)
});
});

describe('Utils', () => {
Expand Down

0 comments on commit dc8470c

Please sign in to comment.