Skip to content

Commit

Permalink
Merge pull request #211 from dskecse/fix-authenticate
Browse files Browse the repository at this point in the history
Replace "authentificate" with "authenticate"
  • Loading branch information
bespoyasov committed Dec 19, 2023
2 parents b447e8e + 5d55cab commit 7112dc7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/Quiz/quizzes/dip-ideal-3/variant-1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ class MongoDbConnection {
class Auth {
connection: MongoDbConnection
constructor(connection: MongoDbConnection) {/*...*/}
authentificate(login: string, password: string) {/*...*/}
authenticate(login: string, password: string) {/*...*/}
}
```
2 changes: 1 addition & 1 deletion components/Quiz/quizzes/dip-ideal-3/variant-2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class MongoDbConnection implements DataBaseConnection {
class Auth {
connection: MongoDbConnection
constructor(connection: MongoDbConnection) {/*...*/}
authentificate(login: string, password: string) {/*...*/}
authenticate(login: string, password: string) {/*...*/}
}
```
2 changes: 1 addition & 1 deletion components/Quiz/quizzes/dip-ideal-3/variant-3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class MongoDbConnection implements DataBaseConnection {
class Auth {
connection: DataBaseConnection
constructor(connection: DataBaseConnection) {/*...*/}
authentificate(login: string, password: string) {/*...*/}
authenticate(login: string, password: string) {/*...*/}
}
```
4 changes: 2 additions & 2 deletions pages/dip/in-ideal-world.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Auth {
this.connection = connection
}

async authentificate(login: string, password: string): Promise<AuthResult> {/*...*/}
async authenticate(login: string, password: string): Promise<AuthResult> {/*...*/}
}
```

Expand Down Expand Up @@ -56,7 +56,7 @@ class Auth {
this.connection = connection
}

authentificate(login: string, password: string) {/*...*/}
authenticate(login: string, password: string) {/*...*/}
}
```

Expand Down
4 changes: 2 additions & 2 deletions pages/dip/in-real-life.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ describe('Auth', () => {
auth = new Auth(connection)
})

it('should successfully authentificate user', async () => {
const result: AuthResult = await auth.authentificate('Alex', '123')
it('should successfully authenticate user', async () => {
const result: AuthResult = await auth.authenticate('Alex', '123')
expect(result.status).toEqual(200)
})
})
Expand Down

0 comments on commit 7112dc7

Please sign in to comment.