Skip to content

Commit f74b8ad

Browse files
test(class): change Person class to Persons cause of Person interface
1 parent 7c31865 commit f74b8ad

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/testing/variables/class.const.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
// Constant.
12
import { STRING } from './string.const';
23
import { NUMBER } from './number.const';
34
import { SYMBOL_STRING, SYMBOL_NUMBER } from './strict/symbol.const';
5+
// Interface.
6+
import { Person } from '../interface/person.interface';
47

58
/**
69
* typeof === 'function'
@@ -44,7 +47,7 @@ export class Class {
4447
export const CLASS = new Class();
4548

4649

47-
export class Person {
50+
export class Persons implements Person {
4851
firstName = '';
4952
surname = '';
5053
age = 15;
@@ -56,5 +59,5 @@ export class PersonCopy {
5659
age = 15;
5760
}
5861

59-
export const PERSON: Person = new Person();
62+
export const PERSON: Persons = new Persons();
6063
export const PERSON_COPY: PersonCopy = new PersonCopy();

0 commit comments

Comments
 (0)