node-casbin
node-casbin copied to clipboard
CasbinJsGetPermissionForUser's Test Failing
CasbinJsGetPermissionForUser's Test Failing in frontend.test.ts
@Gabriel-403 @Zxilly @kingiw @nodece
@hsluoyz do you know why is this happening?
@Gabriel-403 @Zxilly @kingiw @nodece
@Shivansh-yadav13 The main reason is git checkout the source files line break to crlf (\r\n)
, but unit test hardcored \n
.
Since old casbin.js has been deprecated, I didn't fix it before.
@Zxilly Should I close this issue since it happened with me only on another system
@Shivansh-yadav13 This is indeed a bug, but clearly not of high priority. Maybe it will be fixed later and we can use this issue to track it.
@Shivansh-yadav13 The main reason is git checkout the source files line break to
crlf (\r\n)
, but unit test hardcored\n
. Since old casbin.js has been deprecated, I didn't fix it before.
The old Casbin.js should be fixed. All CRLF should be replaced by LF
:tada: This issue has been resolved in version 5.23.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket: