mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 13:36:14 +00:00
Merge pull request #615 from embark-framework/app_veyor_fix
update test so it plays nice with windows
This commit is contained in:
commit
bc4decb282
@ -15,37 +15,37 @@ describe('TemplateGenerator', function () {
|
|||||||
it('return correct zip filename for https link', function () {
|
it('return correct zip filename for https link', function () {
|
||||||
let result = templateGenerator.getExternalProject("https://github.com/embark-framework/embark");
|
let result = templateGenerator.getExternalProject("https://github.com/embark-framework/embark");
|
||||||
assert.strictEqual(result.url, "https://github.com/embark-framework/embark/archive/master.zip");
|
assert.strictEqual(result.url, "https://github.com/embark-framework/embark/archive/master.zip");
|
||||||
assert.strictEqual(result.filePath, ".embark/templates/embark-framework/embark/archive.zip");
|
assert.strictEqual(result.filePath.replace(/\\/g,'/'), ".embark/templates/embark-framework/embark/archive.zip");
|
||||||
});
|
});
|
||||||
|
|
||||||
it('return correct zip filename for http link', function () {
|
it('return correct zip filename for http link', function () {
|
||||||
let result = templateGenerator.getExternalProject("http://github.com/embark-framework/embark");
|
let result = templateGenerator.getExternalProject("http://github.com/embark-framework/embark");
|
||||||
assert.strictEqual(result.url, "http://github.com/embark-framework/embark/archive/master.zip");
|
assert.strictEqual(result.url, "http://github.com/embark-framework/embark/archive/master.zip");
|
||||||
assert.strictEqual(result.filePath, ".embark/templates/embark-framework/embark/archive.zip");
|
assert.strictEqual(result.filePath.replace(/\\/g,'/'), ".embark/templates/embark-framework/embark/archive.zip");
|
||||||
});
|
});
|
||||||
|
|
||||||
it('return correct zip filename without protocol specified ', function () {
|
it('return correct zip filename without protocol specified ', function () {
|
||||||
let result = templateGenerator.getExternalProject("github.com/embark-framework/embark");
|
let result = templateGenerator.getExternalProject("github.com/embark-framework/embark");
|
||||||
assert.strictEqual(result.url, "https://github.com/embark-framework/embark/archive/master.zip");
|
assert.strictEqual(result.url, "https://github.com/embark-framework/embark/archive/master.zip");
|
||||||
assert.strictEqual(result.filePath, ".embark/templates/embark-framework/embark/archive.zip");
|
assert.strictEqual(result.filePath.replace(/\\/g,'/'), ".embark/templates/embark-framework/embark/archive.zip");
|
||||||
});
|
});
|
||||||
|
|
||||||
it('return correct zip filename without protocol specified ', function () {
|
it('return correct zip filename without protocol specified ', function () {
|
||||||
let result = templateGenerator.getExternalProject("github.com/embark-framework/embark");
|
let result = templateGenerator.getExternalProject("github.com/embark-framework/embark");
|
||||||
assert.strictEqual(result.url, "https://github.com/embark-framework/embark/archive/master.zip");
|
assert.strictEqual(result.url, "https://github.com/embark-framework/embark/archive/master.zip");
|
||||||
assert.strictEqual(result.filePath, ".embark/templates/embark-framework/embark/archive.zip");
|
assert.strictEqual(result.filePath.replace(/\\/g,'/'), ".embark/templates/embark-framework/embark/archive.zip");
|
||||||
});
|
});
|
||||||
|
|
||||||
it('return correct zip filename with just username/repo specified', function () {
|
it('return correct zip filename with just username/repo specified', function () {
|
||||||
let result = templateGenerator.getExternalProject("embark-framework/embark");
|
let result = templateGenerator.getExternalProject("embark-framework/embark");
|
||||||
assert.strictEqual(result.url, "https://github.com/embark-framework/embark/archive/master.zip");
|
assert.strictEqual(result.url, "https://github.com/embark-framework/embark/archive/master.zip");
|
||||||
assert.strictEqual(result.filePath, ".embark/templates/embark-framework/embark/archive.zip");
|
assert.strictEqual(result.filePath.replace(/\\/g,'/'), ".embark/templates/embark-framework/embark/archive.zip");
|
||||||
});
|
});
|
||||||
|
|
||||||
it('return correct zip filename with just embark template specified', function () {
|
it('return correct zip filename with just embark template specified', function () {
|
||||||
let result = templateGenerator.getExternalProject("react");
|
let result = templateGenerator.getExternalProject("react");
|
||||||
assert.strictEqual(result.url, "https://github.com/embark-framework/embark-react-template/archive/master.zip");
|
assert.strictEqual(result.url, "https://github.com/embark-framework/embark-react-template/archive/master.zip");
|
||||||
assert.strictEqual(result.filePath, ".embark/templates/embark-framework/embark-react-template/archive.zip");
|
assert.strictEqual(result.filePath.replace(/\\/g,'/'), ".embark/templates/embark-framework/embark-react-template/archive.zip");
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user