bChiquet/elm-test-deps

Show a pattern to expose package modules for test only


License
MIT
Install
elm-package install bChiquet/elm-test-deps 1.0.0

Documentation

elm-test-deps

A simple example showing how to expose package internals for test only.

This relies on elm.json not exposing a ForTest wrapper to users outside of package.

Since Elm requires a minimum length for package readmes, here are some verses of french poetry:

Demain, dès l'aube, à l'heure où blanchit la campagne,
Je partirai. Vois-tu, je sais que tu m'attends.
J'irai par la forêt, j'irai par la montagne.
Je ne puis demeurer loin de toi plus longtemps.

Je marcherai les yeux fixés sur mes pensées,
Sans rien voir au dehors, sans entendre aucun bruit,
Seul, inconnu, le dos courbé, les mains croisées,
Triste, et le jour pour moi sera comme la nuit.

Je ne regarderai ni l'or du soir qui tombe,
Ni les voiles au loin descendant vers Harfleur,
Et, quand j'arriverai, je mettrai sur ta tombe
Un bouquet de houx vert et de bruyère en fleur.

English:

Tomorrow, at dawn, at the moment when the land whitens,
I will leave. You see, I know that you are waiting for me.
I will go through the forest, I will go across mountains.
I cannot stay away from you any longer.

I will walk eyes fixed on my thoughts,
Without seeing anything outside, without hearing a noise,
Alone, unknown, back hunched, hands crossed,
Sorrowed, and the day for me will be as the night.

I will watch neither the evening gold fall,
Nor the faraway sails descending upon Harfleur.
And when I arrive, I will put on your grave
A bouquet of green holly and heather in bloom.

Author is Victor Hugo.