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
Copy file name to clipboardExpand all lines: test/scripts/processors/asset.ts
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ describe('asset', () => {
80
80
81
81
awaitwriteFile(file.source,'foo');
82
82
awaitprocess(file);
83
-
constid=join('source/',file.path);
83
+
constid='source/'+file.path;
84
84
constasset=Asset.findById(id);
85
85
86
86
asset._id.should.eql(id);
@@ -103,7 +103,7 @@ describe('asset', () => {
103
103
104
104
awaitwriteFile(file.source,'foo');
105
105
awaitprocess(file);
106
-
constid=join('../source/','foo.jpg');// The id should a relative path,because the 'lib/models/assets.js' use asset path by joining base path with "_id" directly.
106
+
constid='../source/foo.jpg';// The id should a relative path,because the 'lib/models/assets.js' use asset path by joining base path with "_id" directly.
0 commit comments