Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Toolchain
sgc
Commits
e3746aa4
Commit
e3746aa4
authored
Jan 09, 2015
by
Philipp Nowinski
Browse files
[FEATURE] add first very basic test case
parent
016eb714
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/test-app.js
deleted
100644 → 0
View file @
016eb714
'
use strict
'
;
var
path
=
require
(
'
path
'
);
var
assert
=
require
(
'
yeoman-generator
'
).
assert
;
var
helpers
=
require
(
'
yeoman-generator
'
).
test
;
var
os
=
require
(
'
os
'
);
describe
(
'
sgalinski:app
'
,
function
()
{
before
(
function
(
done
)
{
helpers
.
run
(
path
.
join
(
__dirname
,
'
../app
'
))
.
inDir
(
path
.
join
(
os
.
tmpdir
(),
'
./temp-test
'
))
.
withOptions
({
'
skip-install
'
:
true
})
.
withPrompt
({
someOption
:
true
})
.
on
(
'
end
'
,
done
);
});
it
(
'
creates files
'
,
function
()
{
assert
.
file
([
'
bower.json
'
,
'
package.json
'
,
'
._editorconfig
'
,
'
.jshintrc
'
]);
});
});
test/test-load.js
0 → 100644
View file @
e3746aa4
'
use strict
'
;
var
assert
=
require
(
'
assert
'
);
describe
(
'
sgalinski generator
'
,
function
()
{
it
(
'
can be imported without blowing up
'
,
function
()
{
var
app
=
require
(
'
../app
'
);
assert
(
typeof
app
!==
'
undefined
'
);
});
});
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment