TryGhost/Ghost

View on GitHub
ghost/admin/mirage/config/users.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function mockUsers has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function mockUsers(server) {
    // /users/me = Always return the user with ID=1
    server.get('/users/me/', function ({users}) {
        let user = users.find(1);

Severity: Major
Found in ghost/admin/mirage/config/users.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status