Skip to content

Commit 046b020

Browse files
committed
Fixed unit test
1 parent 210ef6e commit 046b020

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ExceptionlessClient-spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ describe('ExceptionlessClient', () => {
5757
expect(builder.target.data).to.be.undefined;
5858
});
5959

60-
it('should accept source and message', () => {
60+
it('should accept source and message and level', () => {
6161
let client = new ExceptionlessClient('LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw', 'http://localhost:50000');
62-
let builder = client.createLog('Unit Test message');
62+
let builder = client.createLog('source', 'Unit Test message', 'Info');
6363

64-
expect(builder.target.source).to.be.undefined;
64+
expect(builder.target.source).to.equal('source');
6565
expect(builder.target.message).to.equal('Unit Test message');
66-
expect(builder.target.data).to.be.undefined;
66+
expect(builder.target.data['@level']).to.equal('Info');
6767
});
6868

6969
it('should allow construction via apiKey and serverUrl parameters', () => {

0 commit comments

Comments
 (0)