Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
angular-component-test-object
Advanced tools
A class for generating page objects for Angular components.
A test module that offers page objects for Angular components.
import { async } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { ComponentObject } from 'angular-component-test-object';
import { SomeService } from './some.service';
class AppComponentObject extends ComponentObject {
constructor() {
let testComponentClass = AppComponent;
let declarations = [
AppComponent,
];
let services = [
SomeService,
];
super(testComponentClass, declarations, services);
}
getAppTitle() {
return this.getElementText('h1');
}
}
describe('AppComponent', () => {
let co: AppComponentObject;
beforeEach(async( () => {
co = new AppComponentObject();
}
));
it('should create the app', async(() => {
expect(co.controller).toBeTruthy();
}));
it(`should have as title 'insert title here'`, async(() => {
expect(co.controller.title).toEqual('insert title here');
}));
it('should render title in a h1 tag', async(() => {
expect(co.getAppTitle()).toContain('insert title here');
}));
});
FAQs
A class for generating page objects for Angular components.
The npm package angular-component-test-object receives a total of 1 weekly downloads. As such, angular-component-test-object popularity was classified as not popular.
We found that angular-component-test-object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.