Skip to content

Commit

Permalink
adapted tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmaro committed Jan 24, 2025
1 parent a3f8f1e commit 40f4b95
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions test/CtrlxCore.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,10 @@ describe('CtrlxCore', function () {
done();
});

it('should parse raw data (types/datalayer/raw', function (done) {

const raw = '��ֶ�ʊBbB��Q����S����X�5�f��@ƥ��e3�z~LvB]ZV3{�H7��0e-�h�� ��';
expect(CtrlxDatalayer._parseData(raw)).to.throw(SyntaxError);

done();
});

it('should parse invalid JSON', function (done) {

const invalidJSON = 'test/invalid/json';
expect(CtrlxDatalayer._parseData(invalidJSON)).to.throw(SyntaxError);
expect(() => CtrlxDatalayer._parseData(invalidJSON)).to.throw(SyntaxError);

done();
});
Expand Down

0 comments on commit 40f4b95

Please sign in to comment.