[perm][android] 100% JS test coverage
This commit is contained in:
parent
6b87ae7056
commit
a018810124
@ -30,7 +30,7 @@ describe('perf()', () => {
|
|||||||
|
|
||||||
describe('newHttpMetric()', () => {
|
describe('newHttpMetric()', () => {
|
||||||
it('returns an instance of HttpMetric', async () => {
|
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');
|
trace.constructor.name.should.be.equal('HttpMetric');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ describe('perf()', () => {
|
|||||||
await trace.start();
|
await trace.start();
|
||||||
await trace.putAttribute('foo', 'bar');
|
await trace.putAttribute('foo', 'bar');
|
||||||
const value = await trace.getAttribute('foo');
|
const value = await trace.getAttribute('foo');
|
||||||
value.shoud.equal('bar');
|
value.should.equal('bar');
|
||||||
await trace.stop();
|
await trace.stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user