2
0
mirror of synced 2025-01-10 14:16:27 +00:00

[perm][android] 100% JS test coverage

This commit is contained in:
Elliot Hesp 2018-07-18 13:30:54 +01:00
parent 6b87ae7056
commit a018810124
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ describe('perf()', () => {
describe('newHttpMetric()', () => {
it('returns an instance of HttpMetric', async () => {
const trace = firebase.perf().newHttpMetric('foo', 'bar');
const trace = firebase.perf().newHttpMetric('http://foo.com', 'GET');
trace.constructor.name.should.be.equal('HttpMetric');
});

View File

@ -28,7 +28,7 @@ describe('perf()', () => {
await trace.start();
await trace.putAttribute('foo', 'bar');
const value = await trace.getAttribute('foo');
value.shoud.equal('bar');
value.should.equal('bar');
await trace.stop();
});