[perm][android] 100% JS test coverage
This commit is contained in:
parent
6b87ae7056
commit
a018810124
@ -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');
|
||||
});
|
||||
|
||||
|
@ -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();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user