Don't fail on placeholder mod directories

This commit is contained in:
Andrew Miner
2016-06-01 17:26:50 -06:00
parent 7550804e02
commit 75174a4039
+5 -1
View File
@@ -24,7 +24,11 @@ describe 'data files for', ->
mod = new Mod slug:modSlug mod = new Mod slug:modSlug
modParser = new ModParser model:mod, showAllErrors:true modParser = new ModParser model:mod, showAllErrors:true
modParser.parse fs.readFileSync "./data/#{modSlug}/mod.cg", 'utf8' try
modParser.parse fs.readFileSync "./data/#{modSlug}/mod.cg", 'utf8'
catch
# Just a placeholder directory for a suggested mod.
return
it 'loads mod.cg without errors', -> it 'loads mod.cg without errors', ->
modParser.errors.should.eql [] modParser.errors.should.eql []