Skip to content

Commit

Permalink
Adds a Javascript test file with Java Emacs mode
Browse files Browse the repository at this point in the history
  • Loading branch information
amujumdar committed Dec 18, 2013
1 parent da83074 commit dfee05b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/detect_files/javascript_emacs.js
@@ -0,0 +1,7 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
'use strict';

require('./external/shelljs/make');
var builder = require('./external/builder/builder.js');
var crlfchecker = require('./external/crlfchecker/crlfchecker.js');
var path = require('path');
1 change: 1 addition & 0 deletions test/unit/detector_test.h
Expand Up @@ -201,6 +201,7 @@ void test_detector_emacs_mode() {

void test_detector_emacs_with_extension() {
ASSERT_DETECT(LANG_RUBY, "java_emac.rb");
ASSERT_DETECT(LANG_JAVASCRIPT, "javascript_emac.js");
}

void test_detector_puppet(){
Expand Down

0 comments on commit dfee05b

Please sign in to comment.