Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

#410 implementation of testing SJS modules with SJS #411

Merged
merged 2 commits into from
Apr 14, 2015

Conversation

dmcassel
Copy link
Collaborator

Allows tests like the one below. I'll add or update a wiki.

var test = require('/test/test-helper.xqy');
var simple = require('/lib/simple.sjs');

(function addOnePlusOne() {
  var actual = simple.addOne(1);
  xdmp.log('Ran addOnePlusOne');
  return [
    test.assertEqual(2, actual),
    test.assertNotEqual(5, actual)
  ];
})();

(function addOnePlusTwo() {
  var actual = simple.addOne(2);
  test.assertEqual(3, actual);
})();

@dmcassel
Copy link
Collaborator Author

@dmcassel
Copy link
Collaborator Author

@grtjn I made that update you suggested. You good with this PR?

@grtjn
Copy link
Contributor

grtjn commented Apr 14, 2015

Looks good to me.

grtjn added a commit that referenced this pull request Apr 14, 2015
#410 implementation of testing SJS modules with SJS
@grtjn grtjn merged commit 8f87222 into marklogic-community:dev Apr 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants