Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-infinite-autocomplete

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-infinite-autocomplete - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

2

package.json
{
"name": "ng-infinite-autocomplete",
"version": "2.0.2",
"version": "2.0.3",
"description": "AngularJS 1.x infinite-autocomplete wrapper",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -101,2 +101,3 @@ import * as angular from 'angular';

scope.$on(`$destroy`, () => {
console.dir(inifinityAutocomplete);
fetchSizeWatchListener();

@@ -107,2 +108,3 @@ maxHeightWatchListener();

customizedOptionsListener();
inifinityAutocomplete.destroy();
});

@@ -109,0 +111,0 @@

@@ -11,2 +11,3 @@ import * as angular from 'angular';

InfiniteAutocompleteCore = jasmine.createSpy('InfiniteAutocompleteCore');
InfiniteAutocompleteCore.prototype.destroy = jasmine.createSpy('destroy');
InfiniteAutocompleteCore.prototype.setConfig = jasmine.createSpy('setConfig')

@@ -46,3 +47,21 @@ //Mock passed functions to be executed automatically to bypass low coverage report

describe(`destroy lifecycle hook`, function() {
it(`should call InfiniteAutocompleteCore.prototype.destroy when scope get destroy`,
function() {
$scope.data = [{
text: 'text', value: 'value'
}];
element = $compile('<div ng-infinite-autocomplete data="data"></div>')($scope);
$scope.$digest();
expect(InfiniteAutocompleteCore)
.toHaveBeenCalledWith(element[0]);
$scope.$destroy();
expect(InfiniteAutocompleteCore.prototype.destroy)
.toHaveBeenCalled();
});
});
describe(`Data feature support`, function() {

@@ -49,0 +68,0 @@

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