-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
0c5b122
commit f5aabc6
Showing
59 changed files
with
3,682 additions
and
26 deletions.
There are no files selected for viewing
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
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
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,3 @@ | ||
{ | ||
"directory": "bower_components" | ||
} |
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,13 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,10 @@ | ||
node_modules/ | ||
bower_components/ | ||
.sass-cache/ | ||
.tmp/ | ||
dist/ | ||
dev/ | ||
tests/ | ||
builds/ | ||
coverage/ | ||
docs/ |
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,35 @@ | ||
{ | ||
"globalstrict": true, | ||
"bitwise": true, | ||
"camelcase": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"immed": true, | ||
"indent": 2, | ||
"latedef": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"quotmark": "single", | ||
"regexp": true, | ||
"undef": true, | ||
"unused": true, | ||
"strict": true, | ||
"trailing": true, | ||
"smarttabs": true, | ||
"white": true, | ||
"validthis": true, | ||
"globals": { | ||
"angular": false, | ||
// Angular Mocks | ||
"inject": false, | ||
"module": false, | ||
// JASMINE | ||
"describe": false, | ||
"it": false, | ||
"before": false, | ||
"beforeEach": false, | ||
"after": false, | ||
"afterEach": false, | ||
"expect": false | ||
} | ||
} |
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,32 @@ | ||
{ | ||
"name": "BaseBuildTests", | ||
"private": "true", | ||
"version": "0.0.0", | ||
"dependencies": { | ||
"underscore": "~1.8.3", | ||
"angular-animate": "~1.3.4", | ||
"angular-cookies": "~1.3.4", | ||
"angular-touch": "~1.3.4", | ||
"angular-sanitize": "~1.3.4", | ||
"jquery": "~1.11.1", | ||
"angular-resource": "~1.3.4", | ||
"angular-ui-router": "~0.2.15", | ||
"angular": "~1.3.4", | ||
"ngtoast": "~1.5.0", | ||
"angular-loading-bar": "~0.7.1", | ||
"angular-ui-select": "~0.12.0", | ||
"angular-sweetalert": "~1.1.0", | ||
"bootstrap-sass-official": "~3.3.5", | ||
"angular-bootstrap": "~0.13.0", | ||
"react": "~0.13.3", | ||
"classnames": "~2.1.3" | ||
}, | ||
"devDependencies": { | ||
"angular-mocks": "~1.3.4", | ||
"basebuild-angular": "*" | ||
}, | ||
"resolutions": { | ||
"jquery": "~1.11.1", | ||
"angular": "1.3.18" | ||
} | ||
} |
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,107 @@ | ||
{ | ||
"arrow_spacing": { | ||
"level": "ignore" | ||
}, | ||
"camel_case_classes": { | ||
"level": "error" | ||
}, | ||
"coffeescript_error": { | ||
"level": "error" | ||
}, | ||
"colon_assignment_spacing": { | ||
"level": "ignore", | ||
"spacing": { | ||
"left": 0, | ||
"right": 0 | ||
} | ||
}, | ||
"cyclomatic_complexity": { | ||
"value": 10, | ||
"level": "ignore" | ||
}, | ||
"duplicate_key": { | ||
"level": "error" | ||
}, | ||
"empty_constructor_needs_parens": { | ||
"level": "ignore" | ||
}, | ||
"indentation": { | ||
"value": 2, | ||
"level": "error" | ||
}, | ||
"line_endings": { | ||
"level": "ignore", | ||
"value": "unix" | ||
}, | ||
"max_line_length": { | ||
"value": 200, | ||
"level": "error", | ||
"limitComments": true | ||
}, | ||
"missing_fat_arrows": { | ||
"level": "ignore" | ||
}, | ||
"newlines_after_classes": { | ||
"value": 3, | ||
"level": "ignore" | ||
}, | ||
"no_backticks": { | ||
"level": "ignore" | ||
}, | ||
"no_debugger": { | ||
"level": "warn" | ||
}, | ||
"no_empty_functions": { | ||
"level": "ignore" | ||
}, | ||
"no_empty_param_list": { | ||
"level": "ignore" | ||
}, | ||
"no_implicit_braces": { | ||
"level": "ignore", | ||
"strict": true | ||
}, | ||
"no_implicit_parens": { | ||
"strict": true, | ||
"level": "ignore" | ||
}, | ||
"no_interpolation_in_single_quotes": { | ||
"level": "ignore" | ||
}, | ||
"no_plusplus": { | ||
"level": "ignore" | ||
}, | ||
"no_stand_alone_at": { | ||
"level": "ignore" | ||
}, | ||
"no_tabs": { | ||
"level": "error" | ||
}, | ||
"no_throwing_strings": { | ||
"level": "error" | ||
}, | ||
"no_trailing_semicolons": { | ||
"level": "error" | ||
}, | ||
"no_trailing_whitespace": { | ||
"level": "error", | ||
"allowed_in_comments": false, | ||
"allowed_in_empty_lines": true | ||
}, | ||
"no_unnecessary_double_quotes": { | ||
"level": "ignore" | ||
}, | ||
"no_unnecessary_fat_arrows": { | ||
"level": "warn" | ||
}, | ||
"non_empty_constructor_needs_parens": { | ||
"level": "ignore" | ||
}, | ||
"prefer_english_operator": { | ||
"level": "ignore", | ||
"doubleNotLevel": "ignore" | ||
}, | ||
"space_operators": { | ||
"level": "ignore" | ||
} | ||
} |
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,10 @@ | ||
{ | ||
"extends": "../.jshintrc", | ||
"globals": { | ||
"browser": false, | ||
"element": false, | ||
"by": false, | ||
"$": false, | ||
"$$": false | ||
} | ||
} |
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,15 @@ | ||
/** | ||
* This file uses the Page Object pattern to define the main page for tests | ||
* https://docs.google.com/presentation/d/1B6manhG0zEXkC-H-tPo2vwU06JhL8w9-XCF9oehXzAQ | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var MainPage = function() { | ||
this.jumbEl = element(by.css('.jumbotron')); | ||
this.h1El = this.jumbEl.element(by.css('h1')); | ||
this.imgEl = this.jumbEl.element(by.css('img')); | ||
this.thumbnailEls = element(by.css('body')).all(by.repeater('awesomeThing in awesomeThings')); | ||
}; | ||
|
||
module.exports = new MainPage(); |
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,21 @@ | ||
'use strict'; | ||
|
||
describe('The main view', function () { | ||
var page; | ||
|
||
beforeEach(function () { | ||
browser.get('http://localhost:3000/index.html'); | ||
page = require('./main.po'); | ||
}); | ||
|
||
it('should include jumbotron with correct data', function() { | ||
expect(page.h1El.getText()).toBe('\'Allo, \'Allo!'); | ||
expect(page.imgEl.getAttribute('src')).toMatch(/assets\/images\/yeoman.png$/); | ||
expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman'); | ||
}); | ||
|
||
it('list more than 5 awesome things', function () { | ||
expect(page.thumbnailEls.count()).toBeGreaterThan(5); | ||
}); | ||
|
||
}); |
Oops, something went wrong.