New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-unit-testing-helpers

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-unit-testing-helpers - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

examples/TestElement/component-with-test-element.js

4

package.json
{
"name": "angular-unit-testing-helpers",
"version": "0.0.4",
"version": "0.0.5",
"description": "A collection of helper functions for writing AngularJS unit tests.",

@@ -29,3 +29,3 @@ "main": "test-helpers.js",

"devDependencies": {
"angular": "^1.4.8",
"angular": "1.5.0-rc.0",
"angular-mocks": "^1.4.8",

@@ -32,0 +32,0 @@ "jasmine-core": "^2.3.4",

@@ -21,2 +21,3 @@ [![Build Status](https://travis-ci.org/dakolech/angular-unit-testing-helpers.svg?branch=master)](https://travis-ci.org/dakolech/angular-unit-testing-helpers)

- [createDirective](#createdirective)
- [createComponent](#createcomponent)
- [createFilter](#createfilter)

@@ -190,3 +191,3 @@ - [get scope](#get-scope)

var _this = this;
inject(function($rootScope, $compile, $timeout, $controller, $templateCache) {
inject(function($rootScope, $compile, $timeout, $controller, $templateCache, $filter) {
_this._$scope = $rootScope.$new();

@@ -198,2 +199,3 @@ _this.$originalScope = $rootScope.$new();

_this.$templateCache = $templateCache;
_this.$filter = $filter;
});

@@ -303,2 +305,23 @@ this.name = '';

### createComponent:
```javascript
var element;
element = new TestElement();
element.createComponent(name, html, scope);
```
`createComponent` is an alias to createDirective method.
Implementation:
```javascript
createComponent: function(name, html, scope) {
this.createDirective(name, html, scope);
return this._el;
}
```
**[Back to top](#table-of-contents)**
### createFilter:

@@ -305,0 +328,0 @@

@@ -96,2 +96,7 @@ window.TestServ = function(name) {

createComponent: function(name, html, scope) {
this.createDirective(name, html, scope);
return this._el;
},
createFilter: function(name) {

@@ -98,0 +103,0 @@ return this.$filter(name);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc