From 75174a40392f8dedc9a654948c458367534cb70d Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Wed, 1 Jun 2016 17:26:50 -0600 Subject: [PATCH] Don't fail on placeholder mod directories --- test/data.test.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/data.test.coffee b/test/data.test.coffee index e2b3549e..9f32eb4a 100644 --- a/test/data.test.coffee +++ b/test/data.test.coffee @@ -24,7 +24,11 @@ describe 'data files for', -> mod = new Mod slug:modSlug 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', -> modParser.errors.should.eql []