Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

se-methods #116

Open
andredornas opened this issue Apr 27, 2017 · 1 comment
Open

se-methods #116

andredornas opened this issue Apr 27, 2017 · 1 comment
Assignees
Labels

Comments

@andredornas
Copy link
Contributor

andredornas commented Apr 27, 2017

Use tinytest to test se-methods

@andredornas andredornas self-assigned this Apr 27, 2017
@andredornas
Copy link
Contributor Author

andredornas commented Jun 6, 2017

Error: tinytest unexpected token ...

`Function(func) {

return {

  protect(role) {

    return function (...args) {

      if (_.isEqual(role, 'public'))

        return func.apply(this, args);

      Check.User(this.userId).role(role);

      return func.apply(this, args);

    };
  },
};

},`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant