diff (#510)
* diff * fixes * fixes * fixes * fixes * fixes * better docs
This commit is contained in:
@@ -154,6 +154,20 @@ export class BrowserManager {
|
||||
return snapshot;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the last snapshot tree text (empty string if no snapshot has been taken)
|
||||
*/
|
||||
getLastSnapshot(): string {
|
||||
return this.lastSnapshot;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the stored snapshot (used by diff to keep the baseline current)
|
||||
*/
|
||||
setLastSnapshot(snapshot: string): void {
|
||||
this.lastSnapshot = snapshot;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the cached ref map from last snapshot
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user