Skip to content

Instantly share code, notes, and snippets.

View maldonadod's full-sized avatar

Daniel Maldonado maldonadod

  • Buenos Aires, Argentina
View GitHub Profile
//collapse every expanded file
document.querySelectorAll('button.btn-octicon[aria-expanded=true]').forEach(button => button.click())
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)
@maldonadod
maldonadod / UniCarasExpuestas.js
Last active December 11, 2018 19:32
Algunas pruebas para la function Cubo. Esta solo devuelve una simple estructura de datos con la propiedad cubos_con_1_cara_expuesta.
const UniCarasExpuestas = n => {
if (n <= 1) {
return 1;
}
const caras_del_cubo = 6;
return (n - 2) * (n - 2) * caras_del_cubo;
}
module.exports = UniCarasExpuestas;