File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const {
1010 fixtureCompare : _fixtureCompare ,
1111 commit
1212} = require ( 'git-fixtures' ) ;
13+ const { isGitClean } = require ( 'git-diff-apply' ) ;
1314const {
1415 assertNormalUpdate,
1516 assertNoUnstaged,
@@ -232,6 +233,37 @@ describe(function() {
232233 assertNoUnstaged ( status ) ;
233234 } ) ;
234235
236+ it ( 'has all up-to-date blueprints' , async function ( ) {
237+ let {
238+ ps,
239+ promise
240+ } = await merge ( {
241+ fixturesPath : 'test/fixtures/blueprint/app/remote-app/merge' ,
242+ commitMessage : 'my-app'
243+ } ) ;
244+
245+ ps . stdout . pipe ( process . stdout ) ;
246+
247+ await new Promise ( resolve => {
248+ function stdoutData ( data ) {
249+ let str = data . toString ( ) ;
250+ if ( str . includes ( 'All blueprints are up-to-date!' ) ) {
251+ ps . stdout . removeListener ( 'data' , stdoutData ) ;
252+ resolve ( ) ;
253+ }
254+ }
255+ ps . stdout . on ( 'data' , stdoutData ) ;
256+ } ) ;
257+
258+ let {
259+ status
260+ } = await promise ;
261+
262+ expect ( await isGitClean ( { cwd : tmpPath } ) ) . to . be . ok ;
263+
264+ expect ( status ) . to . equal ( '' ) ;
265+ } ) ;
266+
235267 it ( 'can pick from multiple blueprints' , async function ( ) {
236268 this . timeout ( 15 * 60 * 1000 ) ;
237269
You can’t perform that action at this time.
0 commit comments