Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
f4e4861
Akshat-bullion-clone-create
sahiiilpatel Mar 13, 2023
cc1d771
13/03/23
sahiiilpatel Mar 13, 2023
0458338
created header,footer component & header_com ready
sahiiilpatel Mar 15, 2023
35dc442
Merge branch 'main' of https://github.com/rpsoftech/SharedBullion int…
sahiiilpatel Mar 16, 2023
6c55324
created all components
sahiiilpatel Mar 18, 2023
6ea0043
routes added
sahiiilpatel Mar 18, 2023
bf9f305
create all component & 50% complete about&lagdis
sahiiilpatel Mar 18, 2023
d7b50f7
60% complete component pages
sahiiilpatel Mar 20, 2023
f4189f2
four pages completed
sahiiilpatel Mar 21, 2023
34280bf
Merge branch 'main' of https://github.com/rpsoftech/SharedBullion int…
sahiiilpatel Mar 21, 2023
e44ad84
work on about-us && bank-details components
sahiiilpatel Mar 21, 2023
72e0df5
80% completed component pages
sahiiilpatel Mar 22, 2023
344f06a
contact-us component completed
sahiiilpatel Mar 23, 2023
57f5b13
about-us background logo fix
sahiiilpatel Mar 23, 2023
78fa197
modify all pages
sahiiilpatel Mar 23, 2023
ab642d6
about-us font change
sahiiilpatel Mar 23, 2023
1897276
footer component 50% completed
sahiiilpatel Mar 23, 2023
231587a
footer completed
sahiiilpatel Mar 24, 2023
8401cf1
login & signup page added
sahiiilpatel Mar 24, 2023
7af7f1c
add copy button in bank_details page
sahiiilpatel Mar 24, 2023
9b276c6
24/03/23
sahiiilpatel Mar 24, 2023
cee6637
login & signup page added
sahiiilpatel Mar 26, 2023
1e7aaf4
26/03/23
sahiiilpatel Mar 26, 2023
fad57b6
changes in signup page
sahiiilpatel Mar 28, 2023
4b78ca1
add mobile nav bar
sahiiilpatel Mar 28, 2023
e6bed4b
ADD MOBILE NAVBAR
sahiiilpatel Mar 29, 2023
a7980e8
add media query
sahiiilpatel Mar 30, 2023
498bbc4
31/3/23 12:00
sahiiilpatel Mar 31, 2023
f5fdbdb
responsive header and bank details page
sahiiilpatel Mar 31, 2023
a9e8435
change in contact page
sahiiilpatel Mar 31, 2023
a2b80ca
add sweetalert2
sahiiilpatel Mar 31, 2023
91e873e
set sweetalert and change in login and signup page
sahiiilpatel Apr 1, 2023
a9acebd
change password minLength
sahiiilpatel Apr 1, 2023
2b7fe31
add users id & password & check on click login btn
sahiiilpatel Apr 2, 2023
919cbf2
add user id and password
sahiiilpatel Apr 2, 2023
5e5be4a
02/04/23
sahiiilpatel Apr 2, 2023
8cd16cf
add erreo404 page
sahiiilpatel Apr 3, 2023
73f4eeb
ADD download header cancle button in mobile view
sahiiilpatel Apr 3, 2023
871eb5c
cancle button function code add in html file
sahiiilpatel Apr 3, 2023
be0882a
click sumbit on sign up page redirect otp page
sahiiilpatel Apr 3, 2023
391e572
4/4/23
sahiiilpatel Apr 4, 2023
644055c
input field space remove
sahiiilpatel Apr 4, 2023
565eaf9
change error404 page
sahiiilpatel Apr 4, 2023
b1d21b9
add terms_npolicy component
sahiiilpatel Apr 4, 2023
b6d878a
compelet otp page
sahiiilpatel Apr 5, 2023
41bf88a
change mobile nav bar and css to scss
sahiiilpatel Apr 5, 2023
15e611f
convert css into tailwindcss
sahiiilpatel Apr 6, 2023
d4dc4a9
footer css to scss
sahiiilpatel Apr 6, 2023
3cad93c
add yellow_gradient class
sahiiilpatel Apr 6, 2023
833d60b
Merge branch 'main' of https://github.com/rpsoftech/SharedBullion int…
sahiiilpatel Apr 6, 2023
b20346b
6/4/23
sahiiilpatel Apr 6, 2023
54f97fc
bg-img set
sahiiilpatel Apr 6, 2023
f38efb2
change mobile nav bar
sahiiilpatel Apr 10, 2023
e7988f6
add slider navbar in lagdis
sahiiilpatel Apr 11, 2023
0379f54
header fixed
sahiiilpatel Apr 12, 2023
bad48fa
fix sidebar and add popup service
sahiiilpatel Apr 12, 2023
ec25c44
13/04/23
sahiiilpatel Apr 13, 2023
01c0446
sign and login user data save service add
AlayAp Apr 13, 2023
e106d8e
img
sahiiilpatel Apr 13, 2023
b7c059b
add password eye button bank page change mobilecss
AlayAp Apr 13, 2023
81bf0f2
14/4
AlayAp Apr 14, 2023
daa046d
onpaste text control
sahiiilpatel Apr 14, 2023
c3cdf65
otp auto fill completed but working on to press all key
AlayAp Apr 14, 2023
a8fb075
Merge branch 'feat/akshat-bull-clone' of https://github.com/rpsoftech…
AlayAp Apr 14, 2023
ab9a6b6
add autofocus
sahiiilpatel Apr 14, 2023
c0172df
add mobile number to otp page
sahiiilpatel Apr 14, 2023
0fa69db
fix password eye button
sahiiilpatel Apr 14, 2023
324a870
all page add margin bottom 110px
sahiiilpatel Apr 14, 2023
654073d
change margin in contact us cards
sahiiilpatel Apr 14, 2023
508400e
change color
sahiiilpatel Apr 14, 2023
260ff09
add DWapp component margin bottom
sahiiilpatel Apr 14, 2023
f39ac42
otp page fix bug and add scroll top on change page
sahiiilpatel Apr 16, 2023
c213db1
sign form fix swal error
sahiiilpatel Apr 16, 2023
d9531af
FIX OTP page logic
sahiiilpatel Apr 17, 2023
dea1cbd
password show button fix
sahiiilpatel Apr 17, 2023
b7c3a83
fix click copy button show copied msg
sahiiilpatel Apr 17, 2023
67c6f70
add bg color home page
sahiiilpatel Apr 17, 2023
e3c5b3d
card add marging for mobile view & scrool to top
sahiiilpatel Apr 18, 2023
c17fd7d
fix bug
sahiiilpatel Apr 19, 2023
ad457ef
Merge branch 'main' of https://github.com/rpsoftech/SharedBullion int…
sahiiilpatel Apr 19, 2023
708b08d
run yarn
sahiiilpatel Apr 19, 2023
5c4623b
add top
sahiiilpatel Apr 19, 2023
9d74b13
Merge branch 'main' of https://github.com/rpsoftech/SharedBullion int…
sahiiilpatel Apr 24, 2023
9af20b9
Add API for login & signup && fix copy popupmsg
sahiiilpatel Apr 24, 2023
d3d6325
fix otp page
sahiiilpatel Apr 25, 2023
24e606a
fix otp page
sahiiilpatel Apr 26, 2023
dddcb27
add guard
sahiiilpatel Apr 27, 2023
6317eab
28/4/23
sahiiilpatel Apr 28, 2023
9596a06
29/04/23
AlayAp Apr 29, 2023
b426eae
5/1/23
AlayAp May 1, 2023
8a4c98f
fix new user error
sahiiilpatel May 4, 2023
bd136d0
Merge branch 'feat/akshat-bull-clone' of https://github.com/rpsoftech…
sahiiilpatel May 4, 2023
64a91d0
Merge branch 'main' of https://github.com/rpsoftech/SharedBullion int…
sahiiilpatel May 20, 2023
7e558cb
git pull main
sahiiilpatel May 20, 2023
ba751de
Merge branch 'main'
sahiiilpatel May 22, 2023
24e6f26
increase limit maximumError 1mb to 5mb
sahiiilpatel May 22, 2023
017611a
fix live rate table
sahiiilpatel May 22, 2023
ca8d778
Merge branch 'main' of https://github.com/rpsoftech/SharedBullion int…
keyurboss May 28, 2023
ba10104
WIP
keyurboss May 28, 2023
965bfdf
Merge branch 'main' into feat/akshat-bull-clone
sahiiilpatel Jun 5, 2023
5ececb0
akshat-bull-clone git pull
sahiiilpatel Jun 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"eslint.validate": [
"json"
],
"angular.enable-strict-mode-prompt": false
"angular.enable-strict-mode-prompt": false,
"angular.log": "verbose"
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
36 changes: 36 additions & 0 deletions apps/akshat-bullion-clone/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts"],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "akshatBullApp",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "akshat-bull-app",
"style": "kebab-case"
}
]
},
"extends": [
"plugin:@nrwl/nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
]
},
{
"files": ["*.html"],
"extends": ["plugin:@nrwl/nx/angular-template"],
"rules": {}
}
]
}
22 changes: 22 additions & 0 deletions apps/akshat-bullion-clone/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* eslint-disable */
export default {
displayName: 'akshat-bullion-clone',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
},
},
coverageDirectory: '../../coverage/apps/akshat-bullion-clone',
transform: {
'^.+\\.(ts|mjs|js|html)$': 'jest-preset-angular',
},
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
};
100 changes: 100 additions & 0 deletions apps/akshat-bullion-clone/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"name": "akshat-bullion-clone",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/akshat-bullion-clone/src",
"prefix": "Akshat-bull-app",
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/akshat-bullion-clone",
"index": "apps/akshat-bullion-clone/src/index.html",
"main": "apps/akshat-bullion-clone/src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "apps/akshat-bullion-clone/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"apps/akshat-bullion-clone/src/favicon.ico",
"apps/akshat-bullion-clone/src/assets"
],
"styles": ["apps/akshat-bullion-clone/src/styles.scss"],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"executor": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "akshat-bullion-clone:build:production"
},
"development": {
"browserTarget": "akshat-bullion-clone:build:development"
}
},
"defaultConfiguration": "development",
"options": {
"port": 5554,
"host": "0.0.0.0"
}
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "akshat-bullion-clone:build"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"apps/akshat-bullion-clone/**/*.ts",
"apps/akshat-bullion-clone/**/*.html"
]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/akshat-bullion-clone/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
}
},
"tags": ["service"]
}
15 changes: 15 additions & 0 deletions apps/akshat-bullion-clone/src/app/about-us/about-us.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div class="about_us font relative h-full w-full mr-auto ml-auto flex justify-center items-center bg-no-repeat bg-center">
<div class="background_img">
<img class="absolute top-1/2 left-1/2 opacity-20 translate-x-[-50%] translate-y-[-50%]" src="{{images.background_logo}}" alt="background_logo">
<div class="main w-full py-[30px] px-[10%]">
<div *ngFor="let item of data" class="main_container my-[20px] rounded-[6px] py-[10px] px-[20px]">
<h2 class="w-full text-center m-0 text-[24px] uppercase mb-[10px] border-b-[var(--primary-light)] border-b text-[var(--primary-light)] pb-[4px]">
<span>{{ item.tittle }}</span>
</h2>
<p *ngFor="let para of item.content" class="text-justify text-[16px] text-[#fff] tracking-normal Roboto leading-[20px] mb-[15px]">
{{ para }}
</p>
</div>
</div>
</div>
</div>
16 changes: 16 additions & 0 deletions apps/akshat-bullion-clone/src/app/about-us/about-us.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.main_container {
box-shadow: inset -2px -2px 5px #ffffff80, inset 3px 3px 5px #ffffff12;
}
.about_us {
overflow-y: hidden;
overflow-x: hidden;
}
.about_us {
background: rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 800px) {
.main {
padding-bottom: 110px;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { AboutusComponent } from './about-us.component';

describe('AboutusComponent', () => {
let component: AboutusComponent;
let fixture: ComponentFixture<AboutusComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [AboutusComponent],
}).compileComponents();

fixture = TestBed.createComponent(AboutusComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
62 changes: 62 additions & 0 deletions apps/akshat-bullion-clone/src/app/about-us/about-us.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import { Component} from '@angular/core';
import { NgFor } from '@angular/common';
import { RouterOutlet } from '@angular/router';
interface components {
tittle: string;
content: string[];
}
@Component({
selector: 'akshat-bull-app-about-us',
standalone: true,
imports: [RouterOutlet, NgFor],
templateUrl: './about-us.component.html',
styleUrls: ['./about-us.component.scss'],
})
export class AboutusComponent {
images={
background_logo:'/assets/images/Logo.svg',
};
data: components[] = [
{
tittle: `WELCOME TO Akshat Bullion`,
content: [
`Akshat Bullion was founded in 2018 by Akshat Shah who is doing business
for many year. Blend of his passion and experience in the Gold
& Silver industry have created the organization with customer
oriented. It is located in the heart city of Ahmedabad.`,
`Our young, dynamic and qualified operation team to deliver impeccable
service to the clients. This is what drives our organization to succeed
and has drawn hundreds of prestigious customers to put immense trust and
faith in our business.`,
],
},
{
tittle: `STRENGTH`,
content: [
`We believe delivery on time and transparent trade policies made possible
to achieve the important place in the business within the short span of
time. In the competitive arena Akshat Bullion obliged to satisfy its
customer and suppliers.`,
`Our young, dynamic and qualified operation team to deliver impeccable
service to the clients. This is what drives our organization to succeed
and has drawn hundreds of prestigious customers to put immense trust and
faith in our business.`,
]
},
{
tittle: `VISION`,
content: [
`Our company is having vision of expanding its presence very soon in the
refinery segment with own brand named as Akshat Bullion. In order to
serve you better and reach a wider network, we have focused to launch
our outlets all over the region.`,
]
},
{
tittle: `MANAGEMENT TEAM`,
content: [
`Akshat Shah – Owner`,
]
},
];
}
10 changes: 10 additions & 0 deletions apps/akshat-bullion-clone/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class="main flex justify-center">
<div class="backgroundimg">
<div class="img_parent">
<img class="object-cover" src="../assets/images/background.png" alt="">
</div>
</div>
<div class="w-full main-container">
<router-outlet></router-outlet>
</div>
</div>
51 changes: 51 additions & 0 deletions apps/akshat-bullion-clone/src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
::-webkit-scrollbar {
width: 0;
}

.main {
height: 100vh;
// width: 100vw;
overflow: auto;
position: relative;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
background-repeat: no-repeat;

}

.backgroundimg {
position: fixed;
z-index: -5;
height: 100%;
width: 100%;
overflow: hidden;
background-image: url('/assets/images/background.png') no-repeat;
}

.img_parent {
height: 100%;
width: 100%;
position: relative;
background-color: #000;

img {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%);
object-fit: cover;
}
}

.main {

position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow-y: scroll;
}
32 changes: 32 additions & 0 deletions apps/akshat-bullion-clone/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { TestBed } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { RouterTestingModule } from '@angular/router/testing';

describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [AppComponent, RouterTestingModule],
}).compileComponents();
});

it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app).toBeTruthy();
});

it(`should have as title 'akshat-bullion-clone'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('akshat-bullion-clone');
});

it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1')?.textContent).toContain(
'Welcome akshat-bullion-clone'
);
});
});
Loading