fixed syntax error in nock code