2
0
mirror of synced 2025-01-10 22:26:02 +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()', () => { 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');
}); });

View File

@ -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();
}); });