const assert = require('assert');
// ... Ton code ici ...
class BankCustomer {
constructor(nameCustomer, pinInput) {
this.nameCustomer = nameCustomer;
this.pinInput = pinInput;
};
getName(){
return this.nameCustomer;
}
verifyPinInput(){
if (this.pinInput === '3579') {
return 'true';
}else{
return 'false';
}
}
}
// Tests
const customer = new BankCustomer('John Doe', '3579');
assert.equal(typeof customer.getName, 'function');
assert.equal(typeof customer.verifyPinInput, 'function');
assert.equal(customer.getName(), 'John Doe');
assert.ok(customer.verifyPinInput('3579'));