Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speedup TR test #76

Merged
merged 1 commit into from
Aug 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions test/tr-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ describe('GP-HPE.bundle()', function () {
entry.update({
reviewed: false,
sequenceNumber: 42,
notes: ['Take note.', 'note: Take.']
notes: [ '{{10,10,IBM}}' ]
}, function (err, data) {
if (err) return done(err);

Expand All @@ -255,8 +255,8 @@ var trId1;
describe('GP-HPE: Requesting our first TR', function () {
it('Should request the first TR', function (done) {
const requestData = {
name: 'FirstTR', // TODO: docs say this is optional?
emails: ['[email protected]'], // TODO: docs say this is optional?
name: 'FirstTR',
emails: ['[email protected]'],
partner: 'IBM',
targetLanguagesByBundle: {}, // to fill in
status: 'SUBMITTED' // request to submit it right away.
Expand Down Expand Up @@ -310,7 +310,7 @@ describe('GP-HPE: Requesting our first TR', function () {
}
});
};
process.nextTick(loopy, t, c); // first run
process.nextTick(loopy, c); // first run
});
it('should eventually show the TR as MERGED', function (done) {
var timeout;
Expand Down Expand Up @@ -341,12 +341,13 @@ describe('GP-HPE: Requesting our first TR', function () {


// TODO: more here.
if(VERBOSE) console.dir(tr);
delete tr.gp; // for console.dir
if(VERBOSE) console.dir(tr, {depth: null, color: true});
return done();
}
});
};
process.nextTick(loopy, t, c); // first run
process.nextTick(loopy, c); // first run
});
it('Should now have a reviewed field and translated content thanks to the TR', function (done) {
var entry = gaasClient
Expand Down