Conversation
I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out |
I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out |
I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out |
I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out |
I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quelques interrogations et des micro-modifs en mode "easy".
Il y a aussi plein de commentaires – je suis pas fan car tout code en commentaire est un gros risque de code obsolète avant / sans même qu'on s'en rende compte – mais j'ai pas envie de bloquer l'US pour ça.
@@ -1 +1,4 @@ | |||
extends: '../.eslintrc' | |||
|
|||
globals: | |||
include: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi est-on obligé d'autoriser le mot include
? question vraiment naïve : je ne connais pas la différence avec require et j'imagine que ESLint a une raison pour ne pas l'accepter de base.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avec la modif de api/lib/settings.js
je vois pour quoi on l'ajoute. Par contre, j'ai une remarque sur cette ligne, cf. ci-dessous.
global.abs_path = function(path) { | ||
return global.base_dir + path; | ||
}; | ||
global.include = function(file) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dans quel cas faut-il utiliser la méthode custom include
plutôt que l'import standard require
?
expect(challenge.attributes.instruction).to.equal('Que peut-on dire des œufs de catégorie A ?\n'); | ||
expect(challenge.attributes.proposals).to.equal('- Ils sont bio.\n- Ils pèsent plus de 63 grammes.\n- Ce sont des oeufs frais.\n- Ils sont destinés aux consommateurs.\n- Ils ne sont pas lavés.\n'); | ||
expect(challenge.attributes.type).to.equal('QCM'); | ||
expect(challenge.attributes['has-internet-and-tools']).to.equal(true); | ||
done(); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci pour la transformation :-)
@@ -48,6 +48,33 @@ describe('Unit | Utils | lodash-utils', function () { | |||
}); | |||
|
|||
|
|||
describe('areCSVequivalent', function () { | |||
it('when no arg are given, should return false', function (done) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Une question que je me pose, est-ce qu'on décide qu'on se force à utiliser done
même quand on n'est pas dans un contexte asynchrone ? Dans ce cas et ceux qui suivent, par exemple, on fait un simple expect
tout ce qu'il y a de plus synchrone. On peut peut-être s'économiser des lignes et de l'énergie en ommettant done
, non ? WDYT ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
si pas besoin de done(), on le supprime
@@ -1,26 +1,14 @@ | |||
import Ember from 'ember'; | |||
import _ from 'lodash/lodash'; | |||
// import _ from 'pix-live/utils/lodash-custom'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code mort
@@ -64,7 +63,8 @@ | |||
"replace": "^0.3.0", | |||
"stylelint": "^7.2.0", | |||
"stylelint-config-standard": "^13.0.0", | |||
"tap-xunit": "^1.4.0" | |||
"tap-xunit": "^1.4.0", | |||
"phantomjs-prebuilt":"2.1.14" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Du coup, il faut modifier le README à la racine pour supprimer dans la partie "installation" le prérequis de PhantomJS, non ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README à jour. Je vais envoyer un mail aux dev pour prévenir du changement de version. Je n'ai pas réussi à supprimer la dépendance globale.
}); | ||
|
||
it('renders', function() { | ||
// Set any properties with this.set('myProperty', 'value'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code mort ?
I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out |
5f8f51b
to
85fc3fa
Compare
Changes Unknown when pulling 85fc3fa on 190-no-internet into ** on dev**. |
I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out |
Changes Unknown when pulling a4d5c68 on 190-no-internet into ** on dev**. |
I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out |
Changes Unknown when pulling a4d5c68 on 190-no-internet into ** on dev**. |
I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out |
Changes Unknown when pulling 8554134 on 190-no-internet into ** on dev**. |
I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out |
Changes Unknown when pulling 7507fb9 on 190-no-internet into ** on dev**. |
I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out |
No description provided.