├── .gitignore ├── .jshintrc ├── .travis.yml ├── LICENSE ├── README.md ├── example ├── .bowerrc ├── Gruntfile.js ├── README.md ├── bower.json ├── coffeescript │ ├── app.coffee │ ├── coffee-script.js │ ├── e2e.html │ ├── index.html │ ├── karma.conf.coffee │ └── mock.coffee ├── javascript │ ├── app.js │ ├── e2e.html │ ├── index.html │ ├── karma.conf.js │ └── mock.js ├── package.json └── views │ ├── about.html │ ├── home.html │ └── home2.html ├── hooks ├── README.md ├── commit-msg.sh ├── pre-commit.sh └── validate-commit-msg.js ├── init-repo.sh ├── npm-shrinkwrap.json ├── package.json ├── patterns ├── README.md ├── ab.md ├── complexity.md ├── constant.md ├── controller.md ├── controllerAs.md ├── coverage.md ├── directive.md ├── e2e.md ├── filter.md ├── isolateDirective.md ├── mock.md ├── perceptualdiff.md ├── performance.md └── service.md └── spec ├── config.json ├── example.tester.js ├── fixtures ├── code-comment │ ├── coffeescript.txt │ └── javascript.txt ├── code-lang │ ├── coffeescript.txt │ └── javascript.txt ├── lint-free │ ├── coffeescript.txt │ └── javascript.txt └── valid-code │ ├── coffeescript.txt │ └── javascript.txt ├── lib ├── parse.util.coffee.md ├── rule.util.coffee.md └── tester.util.coffee.md ├── mockData.js ├── pattern.tester.js ├── rule.tester.js ├── rules ├── README.md ├── code-comment.spec.coffee.md ├── code-lang.spec.coffee.md ├── lint-free.spec.coffee.md └── valid-code.spec.coffee.md └── testExamples.sh /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/.gitignore -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/.jshintrc -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/README.md -------------------------------------------------------------------------------- /example/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "bower_components" 3 | } -------------------------------------------------------------------------------- /example/Gruntfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/Gruntfile.js -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/README.md -------------------------------------------------------------------------------- /example/bower.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/bower.json -------------------------------------------------------------------------------- /example/coffeescript/app.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/coffeescript/app.coffee -------------------------------------------------------------------------------- /example/coffeescript/coffee-script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/coffeescript/coffee-script.js -------------------------------------------------------------------------------- /example/coffeescript/e2e.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/coffeescript/e2e.html -------------------------------------------------------------------------------- /example/coffeescript/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/coffeescript/index.html -------------------------------------------------------------------------------- /example/coffeescript/karma.conf.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/coffeescript/karma.conf.coffee -------------------------------------------------------------------------------- /example/coffeescript/mock.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/coffeescript/mock.coffee -------------------------------------------------------------------------------- /example/javascript/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/javascript/app.js -------------------------------------------------------------------------------- /example/javascript/e2e.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/javascript/e2e.html -------------------------------------------------------------------------------- /example/javascript/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/javascript/index.html -------------------------------------------------------------------------------- /example/javascript/karma.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/javascript/karma.conf.js -------------------------------------------------------------------------------- /example/javascript/mock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/javascript/mock.js -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/package.json -------------------------------------------------------------------------------- /example/views/about.html: -------------------------------------------------------------------------------- 1 |

this is the about view.

-------------------------------------------------------------------------------- /example/views/home.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/views/home.html -------------------------------------------------------------------------------- /example/views/home2.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/example/views/home2.html -------------------------------------------------------------------------------- /hooks/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/hooks/README.md -------------------------------------------------------------------------------- /hooks/commit-msg.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/hooks/commit-msg.sh -------------------------------------------------------------------------------- /hooks/pre-commit.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/hooks/pre-commit.sh -------------------------------------------------------------------------------- /hooks/validate-commit-msg.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/hooks/validate-commit-msg.js -------------------------------------------------------------------------------- /init-repo.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/init-repo.sh -------------------------------------------------------------------------------- /npm-shrinkwrap.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/npm-shrinkwrap.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/package.json -------------------------------------------------------------------------------- /patterns/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/README.md -------------------------------------------------------------------------------- /patterns/ab.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/ab.md -------------------------------------------------------------------------------- /patterns/complexity.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/complexity.md -------------------------------------------------------------------------------- /patterns/constant.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/constant.md -------------------------------------------------------------------------------- /patterns/controller.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/controller.md -------------------------------------------------------------------------------- /patterns/controllerAs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/controllerAs.md -------------------------------------------------------------------------------- /patterns/coverage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/coverage.md -------------------------------------------------------------------------------- /patterns/directive.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/directive.md -------------------------------------------------------------------------------- /patterns/e2e.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/e2e.md -------------------------------------------------------------------------------- /patterns/filter.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/filter.md -------------------------------------------------------------------------------- /patterns/isolateDirective.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/isolateDirective.md -------------------------------------------------------------------------------- /patterns/mock.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/mock.md -------------------------------------------------------------------------------- /patterns/perceptualdiff.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/perceptualdiff.md -------------------------------------------------------------------------------- /patterns/performance.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/performance.md -------------------------------------------------------------------------------- /patterns/service.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/patterns/service.md -------------------------------------------------------------------------------- /spec/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/config.json -------------------------------------------------------------------------------- /spec/example.tester.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/example.tester.js -------------------------------------------------------------------------------- /spec/fixtures/code-comment/coffeescript.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/fixtures/code-comment/coffeescript.txt -------------------------------------------------------------------------------- /spec/fixtures/code-comment/javascript.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/fixtures/code-comment/javascript.txt -------------------------------------------------------------------------------- /spec/fixtures/code-lang/coffeescript.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/fixtures/code-lang/coffeescript.txt -------------------------------------------------------------------------------- /spec/fixtures/code-lang/javascript.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/fixtures/code-lang/javascript.txt -------------------------------------------------------------------------------- /spec/fixtures/lint-free/coffeescript.txt: -------------------------------------------------------------------------------- 1 | ####Unit Test Code is Lint-Free 2 | ```CoffeeScript 3 | x = -> 4 | return 1234 + 4567 5 | ``` 6 | 7 | 8 | -------------------------------------------------------------------------------- /spec/fixtures/lint-free/javascript.txt: -------------------------------------------------------------------------------- 1 | ####Unit Test Code is Lint-Free 2 | ```JavaScript 3 | var x = function () { 4 | return 1234 + 4567; 5 | }; 6 | ``` 7 | 8 | 9 | -------------------------------------------------------------------------------- /spec/fixtures/valid-code/coffeescript.txt: -------------------------------------------------------------------------------- 1 | ####Unit Test Code is Valid 2 | ```CoffeeScript 3 | x = () -> return 1234 + 4567 4 | ``` 5 | 6 | 7 | -------------------------------------------------------------------------------- /spec/fixtures/valid-code/javascript.txt: -------------------------------------------------------------------------------- 1 | ####Unit Test Code is Valid 2 | ```JavaScript 3 | var x = function () { return 1234 + 4567 } 4 | ``` 5 | 6 | 7 | -------------------------------------------------------------------------------- /spec/lib/parse.util.coffee.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/lib/parse.util.coffee.md -------------------------------------------------------------------------------- /spec/lib/rule.util.coffee.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/lib/rule.util.coffee.md -------------------------------------------------------------------------------- /spec/lib/tester.util.coffee.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/lib/tester.util.coffee.md -------------------------------------------------------------------------------- /spec/mockData.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/mockData.js -------------------------------------------------------------------------------- /spec/pattern.tester.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/pattern.tester.js -------------------------------------------------------------------------------- /spec/rule.tester.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/rule.tester.js -------------------------------------------------------------------------------- /spec/rules/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/rules/README.md -------------------------------------------------------------------------------- /spec/rules/code-comment.spec.coffee.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/rules/code-comment.spec.coffee.md -------------------------------------------------------------------------------- /spec/rules/code-lang.spec.coffee.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/rules/code-lang.spec.coffee.md -------------------------------------------------------------------------------- /spec/rules/lint-free.spec.coffee.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/rules/lint-free.spec.coffee.md -------------------------------------------------------------------------------- /spec/rules/valid-code.spec.coffee.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/rules/valid-code.spec.coffee.md -------------------------------------------------------------------------------- /spec/testExamples.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniellmb/angular-test-patterns/HEAD/spec/testExamples.sh --------------------------------------------------------------------------------