mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 19:17:09 +03:00
19 lines
659 B
JavaScript
19 lines
659 B
JavaScript
/** @babel */
|
|
|
|
import ApplicationDelegate from '../src/application-delegate';
|
|
|
|
describe('ApplicationDelegate', function() {
|
|
describe('set/getTemporaryWindowState', function() {
|
|
it('can serialize object trees containing redundant child object references', async function() {
|
|
const applicationDelegate = new ApplicationDelegate();
|
|
const childObject = { c: 1 };
|
|
const sentObject = { a: childObject, b: childObject };
|
|
|
|
await applicationDelegate.setTemporaryWindowState(sentObject);
|
|
const receivedObject = await applicationDelegate.getTemporaryWindowState();
|
|
|
|
expect(receivedObject).toEqual(sentObject);
|
|
});
|
|
});
|
|
});
|