feat: debug info for hot route and path

This commit is contained in:
DIYgod
2019-06-19 18:39:40 +08:00
parent 638c613f0b
commit 7c2f4777af
4 changed files with 24 additions and 4 deletions

View File

@@ -41,6 +41,9 @@ describe('debug', () => {
expect(value).toBe('6');
break;
case '热门路由:':
expect(value).toBe(`5&nbsp;&nbsp;/test/:id<br>`);
break;
case '热门路径:':
expect(value).toBe(`3&nbsp;&nbsp;/test/1<br>2&nbsp;&nbsp;/test/2<br>1&nbsp;&nbsp;/<br>`);
break;
case '热门IP:':