Skip to content

Commit

Permalink
Speedup TR test
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 committed Aug 1, 2017
1 parent 9a59eec commit 399e6af
Showing 1 changed file with 7 additions and 6 deletions.
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

0 comments on commit 399e6af

Please sign in to comment.