Skip to content

Commit

Permalink
Add integration test for readOnly offline use
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Aug 11, 2018
1 parent a242da1 commit 00c2244
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration/offline-archivemgr.spec.js
Expand Up @@ -52,6 +52,12 @@ describe("ArchiveManager & ArchiveSource", function() {
});
});

it("sets the archive's status to readOnly", function() {
return this.archiveSource.unlock("test", false, this.content).then(() => {
expect(this.archiveSource.workspace.archive.readOnly).to.be.true;
});
});

it("detects offline content availability after one unlock", function() {
fs.writeFileSync(FILENAME, this.content);
return this.archiveSource
Expand Down

0 comments on commit 00c2244

Please sign in to comment.