Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Mar 6, 2018
1 parent b89fbaf commit bae9ccd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test-docregistry/src/context.spec.ts
Expand Up @@ -306,10 +306,9 @@ describe('docregistry/context', () => {
describe('#revert()', () => {

it('should revert the contents of the file to the disk', () => {
return manager.contents.save(context.path, {
type: factory.contentType,
format: factory.fileFormat,
content: 'foo'
return context.initialize(true).then(() => {
context.model.fromString('foo');
return context.save();
}).then(() => {
context.model.fromString('bar');
return context.revert();
Expand Down

0 comments on commit bae9ccd

Please sign in to comment.