In this chapter, we will be learning about the initial steps of testing, and we write a simple test case to demonstrate how testing works. Let's get started by cloning the project.
Please run the following command in your favorite command-line program. This will clone the repository on your local machine:
> git clone https://github.com/mohammedzamakhan/ngx-behance
Before we run our test, let's open up a test and understand some basics about Jasmine testing. Let's look at the behance.service.spec.ts file, which looks as follows:
import { TestBed } from '@angular/core/testing';
import { BehanceService } from './behance.service';
import { HttpClientTestingModule } from '@angular/common/http/testing';
describe('BehanceService', () => {
beforeEach(() => TestBed.configureTestingModule({
imports...