You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Summary) Uncaught TypeError: Property 'tracks' of object { ... } is not a function
Uncaught TypeError: Property 'tracks' of object {"id":"72f17dbd-a826-4b6f-9b23-ffa71674e405","name":"user","permalink":"user","email":"user@zambah.com","following":[],"likes":[],"tracks":[],"followers":[],"password":"12345678","twitter":{},"facebook":{},"google":{},"profile_pic":"/img/default_avatar.png","cover":"/img/music.jpg","accountType":"artist","emailConfirmed":false,"track_ids":[],"resource":"User"} is not a function
describe('api - profile',function(){varappvaruservarUserfunctioncreateApp(done,opts){varconfig=opts||{}// UserAccount makes a User Resource// providing an arg changes the `uri` of the memorystoreUser=UserAccount(randomstring.generate(25))app=express()app.use(bodyParser.json({limit: '100kb'}))User.create(user_create,function(err,_user){// creates and sets `user`, etcuser=_userapp.use(function(req,res,next){req.user=config.user||usernext()})app.use('/api',api({UserAccount: User}))if('function'===typeofdone)done()})}beforeEach(createApp)afterEach(function(done){User.destroy(user.id,function(){// error caused here //done()})})// tests ...})
(Running into this error for just one, but I really I need a way to clear all data from the associated memory store. ala #53)
The text was updated successfully, but these errors were encountered:
Getting this error
At this line: https://github.com/flatiron/resourceful/blob/master/lib/resourceful/resource.js#L642
From the afterEach loop of my mocha tests here:
(Running into this error for just one, but I really I need a way to clear all data from the associated memory store. ala #53)
The text was updated successfully, but these errors were encountered: