{"_id":"ng2-mock-component","_rev":"13-edb3e4639a58ba8f85a2ca8d2c58e728","name":"ng2-mock-component","description":"An Angular 2 module for mocking components.","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"name":"ng2-mock-component","version":"0.0.1","description":"An Angular 2 module for mocking components.","author":{"name":"Christian Nunciato"},"license":"MIT","scripts":{"prepublish":"tsc"},"dependencies":{"@angular/core":"^2.4.1","core-js":"^2.4.1","rxjs":"^5.0.2","zone.js":"^0.7.4"},"devDependencies":{"@types/core-js":"^0.9.35","typescript":"^2.1.4"},"files":["dist"],"_id":"ng2-mock-component@0.0.1","_shasum":"6414e0a69b05d248dbe7f9e1c437e9b6c0c0c158","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"cnunciato","email":"chris@nunciato.org"},"dist":{"shasum":"6414e0a69b05d248dbe7f9e1c437e9b6c0c0c158","tarball":"https://registry.npmjs.org/ng2-mock-component/-/ng2-mock-component-0.0.1.tgz","integrity":"sha512-n8OBcgyXI+3QdK68F63VS4y/Asgydn14556iZGR39zqWsdcTTt8WKrMLvUbeHYGM4qUhZahTVuUefjg0GN9m+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlRJwX1/oD5Yz3Jpm8BYKeVOjSygXoEW63MP3mjo8A7wIhANgnKxa5nSgC6/MKKjn576l/MmoDsVE1u2RVvCTcNl9G"}]},"maintainers":[{"name":"cnunciato","email":"chris@nunciato.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ng2-mock-component-0.0.1.tgz_1482697484776_0.08079195255413651"},"directories":{}},"0.0.2":{"name":"ng2-mock-component","version":"0.0.2","description":"An Angular 2 module for mocking components.","author":{"name":"Christian Nunciato"},"license":"MIT","scripts":{"prepublish":"tsc"},"dependencies":{"@angular/core":"^2.4.1","core-js":"^2.4.1","rxjs":"^5.0.2","zone.js":"^0.7.4"},"devDependencies":{"@types/core-js":"^0.9.35","typescript":"^2.1.4"},"files":["mock-component.js"],"_id":"ng2-mock-component@0.0.2","_shasum":"f4236ea6d00f0a2215a7d108eacd75ad123eece2","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"cnunciato","email":"chris@nunciato.org"},"dist":{"shasum":"f4236ea6d00f0a2215a7d108eacd75ad123eece2","tarball":"https://registry.npmjs.org/ng2-mock-component/-/ng2-mock-component-0.0.2.tgz","integrity":"sha512-qAZTdM+uhz2S2o51e5AuwUgjYQSGA/j9IobK2FRqI799xxHHJevolSE1mB3mUOc7bs54ysSdTtRAPKXqIwJamA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDkG49irTfkKTQ0tYaIbKxbOE+rWThs8qDaOFdlxF3+QIhAP+y8AZyXcDGrz+x3qssC4dIAGO4T7rvf7PHN+0QwtVu"}]},"maintainers":[{"name":"cnunciato","email":"chris@nunciato.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ng2-mock-component-0.0.2.tgz_1482698684446_0.9180229210760444"},"directories":{}},"0.0.3":{"name":"ng2-mock-component","version":"0.0.3","description":"An Angular 2 module for mocking components.","author":{"name":"Christian Nunciato"},"license":"MIT","scripts":{"prepublish":"tsc"},"dependencies":{"@angular/core":"^2.4.1","core-js":"^2.4.1","rxjs":"^5.0.2","zone.js":"^0.7.4"},"devDependencies":{"@types/core-js":"^0.9.35","typescript":"^2.1.4"},"files":["index.js"],"_id":"ng2-mock-component@0.0.3","_shasum":"70ab79731815c70c060efcfbe98380ec0a956b5f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"cnunciato","email":"chris@nunciato.org"},"dist":{"shasum":"70ab79731815c70c060efcfbe98380ec0a956b5f","tarball":"https://registry.npmjs.org/ng2-mock-component/-/ng2-mock-component-0.0.3.tgz","integrity":"sha512-20i5y7ZD+9HbRI1Vs+tjf1HIwQj5IkwMwraVPIpVu4UsNPr/+TjuXAXtmA+isToIe5MAafd3YWCApHcRjbWSDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfwylikp8dpqUXJmml2Dkcn0GHnezAtrIBjwkAMQ4SUwIgPwCVQQHOiRzCdqq+2qRQkH41vS4ARsQIoVIIYgW2ors="}]},"maintainers":[{"name":"cnunciato","email":"chris@nunciato.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ng2-mock-component-0.0.3.tgz_1482699262380_0.6822137320414186"},"directories":{}},"0.0.4":{"name":"ng2-mock-component","version":"0.0.4","description":"An Angular 2 module for mocking components.","author":{"name":"Christian Nunciato"},"license":"MIT","scripts":{"prepublish":"tsc"},"dependencies":{"@angular/core":"^2.4.1","core-js":"^2.4.1","rxjs":"^5.0.2","zone.js":"^0.7.4"},"devDependencies":{"@types/core-js":"^0.9.35","typescript":"^2.1.4"},"_id":"ng2-mock-component@0.0.4","_shasum":"c2fb4d6ec1ad0305d1b964149b6a4ae75d1b138a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"cnunciato","email":"chris@nunciato.org"},"dist":{"shasum":"c2fb4d6ec1ad0305d1b964149b6a4ae75d1b138a","tarball":"https://registry.npmjs.org/ng2-mock-component/-/ng2-mock-component-0.0.4.tgz","integrity":"sha512-6JI6hc9XIG77fUQTVYOL1gEcJ6X6w7A8tkcVh3eZHXclX142IjvUHxtjX+10nVJFTiQzbLJQZyXHTLUsFuob2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPvBVrkgUYCfChLi5T35ioTMsN8j9Y9rB+FyVcw5cdTQIhANe/tQwyn9KhgWUwHYJEcyq3Ts4KuVkkVxcIXzfClS+0"}]},"maintainers":[{"name":"cnunciato","email":"chris@nunciato.org"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/ng2-mock-component-0.0.4.tgz_1482699383703_0.20575215481221676"},"directories":{}},"0.0.5":{"name":"ng2-mock-component","version":"0.0.5","description":"An Angular 2 module for mocking components.","author":{"name":"Christian Nunciato"},"license":"MIT","scripts":{"prepublish":"tsc"},"dependencies":{"@angular/core":"^2.4.1","core-js":"^2.4.1","rxjs":"^5.0.2","zone.js":"^0.7.4"},"devDependencies":{"@types/core-js":"^0.9.35","typescript":"^2.1.4"},"_id":"ng2-mock-component@0.0.5","_shasum":"487b528a1ed71dc69505ccc9456bb4324803ddb3","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"cnunciato","email":"chris@nunciato.org"},"dist":{"shasum":"487b528a1ed71dc69505ccc9456bb4324803ddb3","tarball":"https://registry.npmjs.org/ng2-mock-component/-/ng2-mock-component-0.0.5.tgz","integrity":"sha512-Z53x4hSu6K4fzH2fSkD8dz5OHc+SyOFkYqd8gyJaU+097OwFBgoJw6eAxfg4qQJLcmjX8CoGZZW2XzkqJQbdZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1FM1mU6qHfI3WfxFZW4wkhHhJLfhVcCKtZw/sVSLAwgIhAIjxwLXcsMbyQjDJ3lsO793VLMKmEhjmAJdHl4o/uOAe"}]},"maintainers":[{"name":"cnunciato","email":"chris@nunciato.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ng2-mock-component-0.0.5.tgz_1482701055286_0.013997058384120464"},"directories":{}},"0.0.6":{"name":"ng2-mock-component","version":"0.0.6","description":"An Angular 2 module for mocking components.","author":{"name":"Christian Nunciato"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cnunciato/ng2-mock-component.git"},"scripts":{"prepublish":"tsc"},"devDependencies":{"@angular/core":"^2.4.1","@types/core-js":"^0.9.35","core-js":"^2.4.1","rxjs":"^5.0.2","zone.js":"^0.7.4","typescript":"^2.1.4"},"keywords":["angular","angular2","mocks"],"gitHead":"d1af88cd5a0919c2f590f464fed1d195275f5712","bugs":{"url":"https://github.com/cnunciato/ng2-mock-component/issues"},"homepage":"https://github.com/cnunciato/ng2-mock-component#readme","_id":"ng2-mock-component@0.0.6","_shasum":"ead3a3c7a4b5b7a8848c190c415079c3689bfd1c","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"cnunciato","email":"chris@nunciato.org"},"dist":{"shasum":"ead3a3c7a4b5b7a8848c190c415079c3689bfd1c","tarball":"https://registry.npmjs.org/ng2-mock-component/-/ng2-mock-component-0.0.6.tgz","integrity":"sha512-/PrZNS9tkHzNNTBMb/hTttduaws+PRYIRfeZ6U2MJKmTWICupYeHzi9ZyWUNh12QG4VwSBo88wVYngnNKxWtMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHVsJK3U4ESga3VsKtEIqRpex9rFTUe3unY2Lwb5kqjwIgKFwdew+zcMuzmvxf6DEawNfMuHkpwy3fYxBYEbnNhG4="}]},"maintainers":[{"name":"cnunciato","email":"chris@nunciato.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ng2-mock-component-0.0.6.tgz_1482702420032_0.9844256124924868"},"directories":{}},"0.1.0":{"name":"ng2-mock-component","version":"0.1.0","description":"An Angular 2 module for mocking components.","author":{"name":"Christian Nunciato"},"license":"MIT","scripts":{"prepublish":"tsc"},"devDependencies":{"@angular/core":"^2.4.1","@types/core-js":"=0.9.36","core-js":"^2.4.1","rxjs":"^5.0.2","zone.js":"^0.7.4","typescript":"^2.1.4"},"keywords":["angular","angular2","mocks"],"gitHead":"a9414fa50313a307451c9abcc08e7c68aa5f54d4","_id":"ng2-mock-component@0.1.0","_shasum":"612f50a2267c38e2b279320d7ec533fcc133e765","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"cnunciato","email":"chris@nunciato.org"},"dist":{"shasum":"612f50a2267c38e2b279320d7ec533fcc133e765","tarball":"https://registry.npmjs.org/ng2-mock-component/-/ng2-mock-component-0.1.0.tgz","integrity":"sha512-BZGyJTZfK1yjIEN9u65Z/5SXEhehBWioPGX8BBmRC8nXEo00VQgq1ci8u6uGZO/dAXzBbeQE8o+MbwLlZhWO6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGaQYZETQ27lr/EzSON6V5RNE/O2pAdKwpDEKoYtUFkbAiEA0+wUf5umoqq8kQdJB72hBHrb37F3hysASnzaSEN4W/g="}]},"maintainers":[{"name":"cnunciato","email":"chris@nunciato.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng2-mock-component-0.1.0.tgz_1503599162814_0.742794037098065"},"directories":{}},"0.1.1":{"name":"ng2-mock-component","version":"0.1.1","description":"An Angular 2 module for mocking components.","author":{"name":"Christian Nunciato"},"license":"MIT","scripts":{"prepublish":"tsc"},"devDependencies":{"@angular/core":"^2.4.1","@types/core-js":"=0.9.36","core-js":"^2.4.1","rxjs":"^5.0.2","zone.js":"^0.7.4","typescript":"^2.1.4"},"keywords":["angular","angular2","mocks"],"gitHead":"0153a9b679e57b2b4e9f4a68d29641c2f8b72ae8","_id":"ng2-mock-component@0.1.1","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"cnunciato","email":"chris@nunciato.org"},"dist":{"integrity":"sha512-HPcn61Wfmcmg2swJ4chqwGueTVkqz0PpnsTriLqMFblaW1/p1tthL9yKpa8TQpcwGSih2NI2Hb7IcQiMlC+E0w==","shasum":"5980e8887523754f855febc0c11f6c20f016d865","tarball":"https://registry.npmjs.org/ng2-mock-component/-/ng2-mock-component-0.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBdxqFLJPepK+HNa0DUG3JXUkVQbdGxof15vyZAVORImAiAH2dINB+Ch7ufEY+l3H1rfPSUraoDwt+2QZzKQ4m3tyw=="}]},"maintainers":[{"name":"cnunciato","email":"chris@nunciato.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng2-mock-component-0.1.1.tgz_1516721761677_0.4089384663384408"},"directories":{}},"0.2.0":{"name":"ng2-mock-component","version":"0.2.0","description":"An Angular 2 module for mocking components.","author":{"name":"Christian Nunciato"},"license":"MIT","scripts":{"prepublish":"tsc"},"devDependencies":{"@angular/core":"^2.4.1","@types/core-js":"=0.9.36","core-js":"^2.4.1","rxjs":"^5.0.2","zone.js":"^0.7.4","typescript":"^2.1.4"},"keywords":["angular","angular2","mocks"],"gitHead":"e1cd888675831db11a26b0a13f3c752cf901006b","_id":"ng2-mock-component@0.2.0","_shasum":"5c7c05fee9e8648127316b8ee051401e1be8589b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.17.1","_npmUser":{"name":"cnunciato","email":"chris@nunciato.org"},"dist":{"shasum":"5c7c05fee9e8648127316b8ee051401e1be8589b","tarball":"https://registry.npmjs.org/ng2-mock-component/-/ng2-mock-component-0.2.0.tgz","integrity":"sha512-DOz4yfwd8V8Fx23XqpdwXpyrNT7vTdo41JPjXke6isnnvoWnYeFfHl3y9ww/ZneRX8gWeyR/c/E11xforIau3w==","fileCount":8,"unpackedSize":5500,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVMAnCRA9TVsSAnZWagAAx7gP/0pW26LhQCMdRwzkOeAU\n0NoRkomZPAE6sLC1jLly07rZDlVOkJSuhfqFCF0ovaiONalSPsicU4tkhJYI\n5NXr/s7xh1qJOLKDt+ejeaHV8VGbVNoa5PNx4tzC+BTra9JdfnbxCFSf2Sb4\nl/S+NgUxdXwPcJ1R4nxnUrfhw0QrB7QZeg2M892SnaRQmgVThYbNZb5cml3N\nZkojoy/I1guic+apgUnQjachmMD7bOrxSWT/jlthuMYguO/WJbSR4N/+xqAj\n/kP/Mj9bgyld8Wl7sixtR2hBEpJRotq0yDQD1DbCZH1xiBkEkbi9nJtqAAPq\nXoCyZnLJ6xN391o91OC4BSH5zFGi8IG2l+ydNKraP0lUEQ7BjdIKWRgLpM6k\nYEoYLA4WMLRD4DudS7SJXB58MnlGBhyIMRgx1IpO50+4g2ujzZXDq/8R8Mcu\nsinhElfhDKiKgcBInM6+gE3pyIn/clwDN9mfH2TVzdhXiEYyr0tNYXcTQ1HW\nZcrypKxQCFv04zdArAtlDnxsDehkBthhf9GPleiik2Bcus/vcWON3tO2ceSA\nFADE77RWDUd6H5SNjp3aKCiWj2ceC+FjRZS9+uqyTKHBKTu9EA5nb4TRyqEH\nebwxf8rtZ19W74l/PnrTvbhVbR7ZfFXysYUsSPja9f9N4iASlvS3bhRRfpp6\n412J\r\n=A47s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeXjw5IGKDmo91Sl9fhOegfgtz5bWQQB3QvL3+fqhCvAIgVJj+3Tjw2wBQCcGl1pLDXdDNBanzS1lmPaKhua57lGI="}]},"maintainers":[{"name":"cnunciato","email":"chris@nunciato.org"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng2-mock-component_0.2.0_1565835303045_0.5586387672406923"},"_hasShrinkwrap":false}},"readme":"# ng2-mock-component\n\nA very simple Angular 2 module for mocking components in unit tests.\n\n```\nnpm install --save-dev ng2-mock-component\n```\n\n## Usage\n\nJust specify the `selector` of the component you wish to mock (along with whatever other\n[metadata properties](https://angular.io/docs/ts/latest/api/core/index/Component-decorator.html)\nyou like), and `MockComponent` will supply that component with an empty template (unless you provide\na template string, in which case, it'll use that instead).\n\n```\nimport { TestBed } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { MyComponent } from './src/my.component';\nimport { MockComponent } from 'ng2-mock-component';\n\ndescribe('MyComponent', () => {\n  let fixture, element;\n\n  beforeEach(() => {\n    TestBed.configureTestingModule({\n      declarations: [\n        MyComponent,\n        MockComponent({ selector: 'my-subcomponent' })\n      ]\n    });\n\n    fixture = TestBed.createComponent(MyComponent);\n    element = fixture.debugElement;\n  });\n\n  it('works', () => {\n    fixture.detectChanges();\n    expect(element.query(By.css('my-subcomponent'))).not.toBeNull();\n  });\n});\n```\n\n## Author\n\nChristian Nunciato (chris@nunciato.org)\n","maintainers":[{"email":"chris@nunciato.org","name":"christiannunciato"}],"time":{"modified":"2022-06-21T06:01:11.615Z","created":"2016-12-25T20:24:45.006Z","0.0.1":"2016-12-25T20:24:45.006Z","0.0.2":"2016-12-25T20:44:44.679Z","0.0.3":"2016-12-25T20:54:22.599Z","0.0.4":"2016-12-25T20:56:25.630Z","0.0.5":"2016-12-25T21:24:15.524Z","0.0.6":"2016-12-25T21:47:00.266Z","0.1.0":"2017-08-24T18:26:03.127Z","0.1.1":"2018-01-23T15:36:02.093Z","0.2.0":"2019-08-15T02:15:03.172Z"},"author":{"name":"Christian Nunciato"},"license":"MIT","readmeFilename":"README.md","keywords":["angular","angular2","mocks"]}