Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
// Arrange
initialState = initialDocument.set(
"notebook",
Immutable.fromJS({
cellOrder,
cellMap: {
[cellOrder[0]]: emptyCodeCell
.setIn(["metadata", "jupyter", "outputs_hidden"], false)
.setIn(["metadata", "jupyter", "source_hidden"], false),
[cellOrder[1]]: emptyCodeCell
.setIn(["metadata", "jupyter", "outputs_hidden"], true)
.setIn(["metadata", "jupyter", "source_hidden"], false),
[cellOrder[2]]: emptyCodeCell
.setIn(["metadata", "jupyter", "source_hidden"], false)
.setIn(["metadata", "jupyter", "outputs_hidden"], false),
[cellOrder[3]]: emptyCodeCell
.setIn(["metadata", "jupyter", "source_hidden"], true)
.setIn(["metadata", "jupyter", "outputs_hidden"], false)
}
})
);
});
// Arrange
initialState = initialDocument.set(
"notebook",
Immutable.fromJS({
cellOrder,
cellMap: {
[cellOrder[0]]: emptyCodeCell
.setIn(["metadata", "jupyter", "outputs_hidden"], false)
.setIn(["metadata", "jupyter", "source_hidden"], false),
[cellOrder[1]]: emptyCodeCell
.setIn(["metadata", "jupyter", "outputs_hidden"], true)
.setIn(["metadata", "jupyter", "source_hidden"], false),
[cellOrder[2]]: emptyCodeCell
.setIn(["metadata", "jupyter", "source_hidden"], false)
.setIn(["metadata", "jupyter", "outputs_hidden"], false),
[cellOrder[3]]: emptyCodeCell
.setIn(["metadata", "jupyter", "source_hidden"], true)
.setIn(["metadata", "jupyter", "outputs_hidden"], false)
}
})
);
});