Skip to content

Commit

Permalink
Trying to add sourcemap support, maybe need some jasmine hacking sinc…
Browse files Browse the repository at this point in the history
…e they won't fix this for now jasmine/jasmine#491
  • Loading branch information
guitarpoet committed Jun 27, 2015
1 parent ef65cc0 commit 9ba1056
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/spec/tests
/spec/*.js
/node_modules/
*.map
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ compile: ${DIST_FILES}

clean:
@${ECHO} "Cleaning..."
@${RM} ${SPEC_DIR}/*.js ${SPEC_DIR}/tests
@${RM} ${SPEC_DIR}/*.js ${SPEC_DIR}/*.map ${SPEC_DIR}/tests
@${ECHO} "Done."

test: compile ${TEST_DIST_FILES}
Expand All @@ -73,12 +73,12 @@ ${TEST_DIST_FILES}: ${TEST_FILES}

${SPEC_DIR}/core.js: ${CORE_FILES}
@${ECHO} "Compiling Core..."
@${BABEL} -o ${SPEC_DIR}/core.js ${CORE_FILES}
@${BABEL} -o ${SPEC_DIR}/core.js -s ${SPEC_DIR}/core.js.map ${CORE_FILES}
@${ECHO} "Done."

${SPEC_DIR}/ds.js: ${DS_FILES}
@${ECHO} "Compiling DataStore..."
@${BABEL} -o ${SPEC_DIR}/ds.js ${DS_FILES}
@${BABEL} -o ${SPEC_DIR}/ds.js -s ${SPEC_DIR}/ds.js.map ${DS_FILES}
@${ECHO} "Done."

.PHONY: all clean test compile
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"dependencies": {
"xmlhttprequest": "*",
"sleep": "*"
"sleep": "*",
"source-map-support": "*"
}
}
2 changes: 1 addition & 1 deletion tests/core/properties_spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("core.properties.suite", function() {
count.unshift('a.b.c');
});

source.set('a.b.c', 1);
source.set('a.b.c', 2);
let c = source.childTree("a.b.c");
expect(c.value).toBe(1);
expect(count).toEqual(['ALL', 'a', 'a.b', 'a.b.c']);
Expand Down

0 comments on commit 9ba1056

Please sign in to comment.