mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 21:28:12 +00:00
Use mutable object for plans (#3712)
* Use mutable object for plans so that they can sync even in time strip views Allow the name of couch search folder to be configurable * Move observing of couchdb changes to the _toMutable function * Fix unit tests Co-authored-by: Jamie V <jamie.j.vigliotta@nasa.gov>
This commit is contained in:
@ -56,11 +56,24 @@ const notebookStorage = {
|
||||
}
|
||||
};
|
||||
|
||||
let openmct = createOpenMct();
|
||||
let openmct;
|
||||
let mockIdentifierService;
|
||||
|
||||
describe('Notebook Storage:', () => {
|
||||
beforeEach((done) => {
|
||||
openmct = createOpenMct();
|
||||
openmct.$injector = jasmine.createSpyObj('$injector', ['get']);
|
||||
mockIdentifierService = jasmine.createSpyObj(
|
||||
'identifierService',
|
||||
['parse']
|
||||
);
|
||||
mockIdentifierService.parse.and.returnValue({
|
||||
getSpace: () => {
|
||||
return '';
|
||||
}
|
||||
});
|
||||
|
||||
openmct.$injector.get.and.returnValue(mockIdentifierService);
|
||||
window.localStorage.setItem('notebook-storage', null);
|
||||
openmct.objects.addProvider('', jasmine.createSpyObj('mockNotebookProvider', [
|
||||
'create',
|
||||
|
Reference in New Issue
Block a user