Skip to content

Permission denied when running the test #53

Open
@tciuro

Description

@tciuro

Hi,

I've tried to follow the instructions, but I keep on getting a "Permission denied" error:

Macintosh:foo tito$ npm test
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No readme data.

> [email protected] test /Users/tito/Desktop/FooDevelopment/foo
> tests/*-test.js

sh: tests/connect-test.js: Permission denied
npm ERR! weird error 126
npm ERR! not ok code 0
Macintosh:foo tito$ 

I'm not sure what's wrong. This is what tests/connect-test.js looks like:

var APIeasy = require('api-easy');
var suite = APIeasy.describe('your/awesome/api');

suite.discuss('When using your awesome API')
  .discuss('and your awesome resource')
  .use('localhost', 8080)
  .setHeader('Content-Type', 'application/json')
  .post('/connection')
  .expect(200)
.export(module);

The permissions look like this

-rw-r--r--   1 tito  staff  2311 Jul  7 20:39 connect-test.js

Any ideas? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions