mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #35299 from overleaf/ar-map-resource_type_template_to_v1_template
[web/metrics] map resource type "template" to "v1_template" GitOrigin-RevId: 58468f7629b7a327b24dedc1eb09b095a1e38838
This commit is contained in:
@@ -3,10 +3,16 @@ import AbstractMockApi from './AbstractMockApi.mjs'
|
||||
class MockAnalyticsApi extends AbstractMockApi {
|
||||
reset() {
|
||||
this.updates = {}
|
||||
this.lastGraphRequest = null
|
||||
}
|
||||
|
||||
getLastGraphRequest() {
|
||||
return this.lastGraphRequest
|
||||
}
|
||||
|
||||
applyRoutes() {
|
||||
this.app.get('/graphs/:graph', (req, res) => {
|
||||
this.lastGraphRequest = { path: req.path, query: req.query }
|
||||
return res.json({})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user