Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kostadinnp committed Oct 9, 2024
1 parent 06682ab commit af95f66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/apos-ds/lib/story.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const path = require('path');
const fs = require('fs');
const util = require('util');
const glob = util.promisify(require('glob'));
// const util = require('util');
// const glob = util.promisify(require('glob'));
const { glob } = require('glob');

/**
* Methods to initialize module options and based on them to discover
Expand Down
4 changes: 2 additions & 2 deletions packages/apos-ds/test/story.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ describe('Resolve Stories', function() {
expect(self.paths.length).to.equal(3, 'wrong paths count');
const [ c1, c2, c3 ] = self.paths;
expect(c1.module).to.equal('module1');
expect(c1.path).to.equal('test/app/node_modules/module1/views/01.stories.js');
expect(c1.path).to.equal('test/app/node_modules/module1/views/02.stories.js');
expect(c2.module).to.equal('module1');
expect(c2.path).to.equal('test/app/node_modules/module1/views/02.stories.js');
expect(c2.path).to.equal('test/app/node_modules/module1/views/01.stories.js');
expect(c3.module).to.equal('module1');
expect(c3.path).to.equal('test/app/modules/module1/views/01.stories.js');
});
Expand Down

0 comments on commit af95f66

Please sign in to comment.