Skip to content

Instantly share code, notes, and snippets.

@pedesen
Last active February 9, 2016 14:09
Show Gist options
  • Save pedesen/540976405e8a4f814d0e to your computer and use it in GitHub Desktop.
Save pedesen/540976405e8a4f814d0e to your computer and use it in GitHub Desktop.
PropertiesPanel test case structure
describe('feature', function() {
describe('subfeature', function() {
describe('in the DOM', function() {
it('should execute', function() {
// then
// TODO
});
it('should undo', inject(function(commandStack) {
// when
commandStack.undo();
// then
// TODO
}));
it('should redo', inject(function(commandStack) {
// when
commandStack.undo();
commandStack.redo();
// then
// TODO
}));
});
describe('on the business object', function() {
it('should execute', function() {
// then
// TODO
});
it('should undo', inject(function(commandStack) {
// when
commandStack.undo();
// then
// TODO
}));
it('should redo', inject(function(commandStack) {
// when
commandStack.undo();
commandStack.redo();
// then
// TODO
}));
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment