-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Allison Leong
committed
Apr 8, 2019
1 parent
be9dda4
commit aa32b81
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...orcedx-vscode-core/test/vscode-integration/commands/templates/baseTemplateCommand.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { expect } from 'chai'; | ||
import * as path from 'path'; | ||
import { | ||
BundlePathStrategy, | ||
DefaultPathStrategy | ||
} from '../../../../src/commands/templates/baseTemplateCommand'; | ||
|
||
it.only('successfully creates the bundle path', () => { | ||
const bundlePathStrategy = new BundlePathStrategy(); | ||
const expectedPath = path.join('test-dir', 'TestClass', '.cls'); | ||
expect( | ||
bundlePathStrategy.getPathToSource('test-dir', 'TestClass', '.cls') | ||
).to.equal(expectedPath); | ||
}); | ||
|
||
it('successfully creates a default source path', () => { | ||
const defaultPathStrategy = new DefaultPathStrategy(); | ||
const expectedPath = path.join('test-dir', 'TestCmp', 'TestCmp.cmp'); | ||
expect( | ||
defaultPathStrategy.getPathToSource('test-dir', 'TestCmp', '.cmp') | ||
).to.equal(expectedPath); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters