new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Plugins · all subjects

test-utils/database-helpers

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

saveUser persists user to database

The test.saveUser(user) helper persists a user object to the database and returns the saved user. It is typically used after creating a user with test.createUser().

deleteUser removes user from database

The test.deleteUser(userId) helper deletes a user from the database by their ID.

saveOrganization persists organization to database

The test.saveOrganization(org) helper persists an organization object to the database and returns the saved organization. It is only available when the organization plugin is installed.

deleteOrganization removes organization from database

The test.deleteOrganization(orgId) helper deletes an organization from the database by their ID. It is only available when the organization plugin is installed.

addMember adds user as organization member

The test.addMember() helper adds a user as a member of an organization. It accepts an object with userId, organizationId, and role properties. It is only available when the organization plugin is installed.

Give your agent this brain