This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//collapse every expanded file | |
document.querySelectorAll('button.btn-octicon[aria-expanded=true]').forEach(button => button.click()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const newUserRegistrationUseCase = require("../Domain/newUserRegistrationUseCase") | |
const newNameFactory = require("../Domain/newFactoryName") | |
const newAccountRepository = require("../Domain/newAccountRepository") | |
const newRegisterPresenter = require("../Domain/newRegisterPresenter") | |
describe("UserRegistrationShould", UserRegistrationShould) | |
function UserRegistrationShould() { | |
it("should not register invalid names: due emptyness", ShouldDisplayFailedRegisterAttemptDueEmptyness) | |
it("should not register invalid names: due minimum length", ShouldDisplayFailedRegisterAttemptDueMinimumLength) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const UniCarasExpuestas = n => { | |
if (n <= 1) { | |
return 1; | |
} | |
const caras_del_cubo = 6; | |
return (n - 2) * (n - 2) * caras_del_cubo; | |
} | |
module.exports = UniCarasExpuestas; |