mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #7347 from overleaf/bg-record-snapshot-metrics
record metrics for docupdater range operations GitOrigin-RevId: 41c500630dd81670d2798d388f2961a19df76b63
This commit is contained in:
@@ -30,6 +30,7 @@ describe('UpdateManager', function () {
|
||||
'./ShareJsUpdateManager': (this.ShareJsUpdateManager = {}),
|
||||
'./HistoryManager': (this.HistoryManager = {}),
|
||||
'./Metrics': (this.Metrics = {
|
||||
inc: sinon.stub(),
|
||||
Timer: (Timer = (function () {
|
||||
Timer = class Timer {
|
||||
static initClass() {
|
||||
@@ -489,6 +490,10 @@ describe('UpdateManager', function () {
|
||||
)
|
||||
})
|
||||
|
||||
it('should increment the doc-snapshot metric', function () {
|
||||
this.Metrics.inc.calledWith('doc-snapshot').should.equal(true)
|
||||
})
|
||||
|
||||
return it('should call SnapshotManager.recordSnapshot', function () {
|
||||
return this.SnapshotManager.recordSnapshot
|
||||
.calledWith(
|
||||
|
||||
Reference in New Issue
Block a user