|
1 | | -import * as jasmine from 'jasmine'; |
| 1 | +import 'jasmine'; |
2 | 2 | import * as path from 'path'; |
3 | 3 | import { DirUtils } from '../../../runners/katacoda/dirUtils'; |
4 | 4 |
|
5 | | -jasmine.describe("DirUtils", () => { |
| 5 | +describe("DirUtils", () => { |
6 | 6 | let target = new DirUtils(); |
7 | | - jasmine.describe("changeCurrentDir", () => { |
8 | | - jasmine.it("is already in the right folder", () => { |
9 | | - jasmine.expect(target.getCdParam(path.join('/root'), path.join('/root'))).toBe(''); |
| 7 | + describe("changeCurrentDir", () => { |
| 8 | + it("is already in the right folder", () => { |
| 9 | + expect(target.getCdParam(path.join('/root'), path.join('/root'))).toBe(''); |
10 | 10 | }); |
11 | | - jasmine.it("changes directly to the child folder, because currentDir is the prefix of dir", () => { |
12 | | - jasmine.expect(target.getCdParam(path.join('/root/devonfw'), path.join('/root/devonfw/setup'))).toBe(path.join('setup')); |
| 11 | + it("changes directly to the child folder, because currentDir is the prefix of dir", () => { |
| 12 | + expect(target.getCdParam(path.join('/root/devonfw'), path.join('/root/devonfw/setup'))).toBe(path.join('setup')); |
13 | 13 | }); |
14 | | - jasmine.it("returns an absolute path, because both dirs don't have matching parent folders", () => { |
15 | | - jasmine.expect(target.getCdParam(path.join('/setup'), path.join('/root/devonfw/setup'))).toBe(path.join('/root/devonfw/setup')); |
| 14 | + it("returns an absolute path, because both dirs don't have matching parent folders", () => { |
| 15 | + expect(target.getCdParam(path.join('/setup'), path.join('/root/devonfw/setup'))).toBe(path.join('/root/devonfw/setup')); |
16 | 16 | }); |
17 | | - jasmine.it("changes to parent folder before changing to child folder", () => { |
18 | | - jasmine.expect(target.getCdParam(path.join('/root/devonfw'), path.join('/root/setup/folder0/folder1'))).toBe(path.join('../setup/folder0/folder1')); |
| 17 | + it("changes to parent folder before changing to child folder", () => { |
| 18 | + expect(target.getCdParam(path.join('/root/devonfw'), path.join('/root/setup/folder0/folder1'))).toBe(path.join('../setup/folder0/folder1')); |
19 | 19 | }); |
20 | | - jasmine.it("changes to parent folder before changing to child folder and one child folder has the same position and name", () => { |
21 | | - jasmine.expect(target.getCdParam(path.join('/root/devonfw/folder/setup'), path.join('/root/devonfw/setup/setup'))).toBe(path.join('../../setup/setup')); |
| 20 | + it("changes to parent folder before changing to child folder and one child folder has the same position and name", () => { |
| 21 | + expect(target.getCdParam(path.join('/root/devonfw/folder/setup'), path.join('/root/devonfw/setup/setup'))).toBe(path.join('../../setup/setup')); |
22 | 22 | }); |
23 | 23 |
|
24 | 24 | }); |
|
0 commit comments