"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/angular_devkit/schematics/src/sink/host_spec.ts" between
angular-cli-12.0.3.tar.gz and angular-cli-12.0.4.tar.gz

About: Angular CLI is a command line interface for Angular.

host_spec.ts  (angular-cli-12.0.3):host_spec.ts  (angular-cli-12.0.4)
skipping to change at line 138 skipping to change at line 138
const sink = new HostSink(host); const sink = new HostSink(host);
sink sink
.commit(tree) .commit(tree)
.toPromise() .toPromise()
.then(() => { .then(() => {
expect(host.sync.read(normalize('/file0')).toString()).toBe('hello'); expect(host.sync.read(normalize('/file0')).toString()).toBe('hello');
expect(virtualFs.fileBufferToString(host.sync.read(normalize('/file1') ))).toBe('world'); expect(virtualFs.fileBufferToString(host.sync.read(normalize('/file1') ))).toBe('world');
}) })
.then(done, done.fail); .then(done, done.fail);
}); });
it('can rename then modify the same file', async () => {
const host = new virtualFs.test.TestHost({
'/file0': 'world',
});
const tree = new HostTree(host);
tree.rename('/file0', '/file1');
expect(tree.exists('/file0')).toBeFalsy();
expect(tree.exists('/file1')).toBeTruthy();
tree.overwrite('/file1', 'hello');
const sink = new HostSink(host);
await sink.commit(tree).toPromise();
expect(virtualFs.fileBufferToString(host.sync.read(normalize('/file1')))).
toBe('hello');
});
}); });
}); });
 End of changes. 1 change blocks. 
0 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)