Skip to content

Commit

Permalink
Merge pull request #916 from ember-learn/refactor-allow-@warp-drive-i…
Browse files Browse the repository at this point in the history
…n-data-docs

refactor: allow @warp-drive in data docs
  • Loading branch information
jaredgalanis authored Jul 6, 2024
2 parents a5b4a45 + 0dc28b2 commit f38cbcb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/project-version/modules/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class ModuleRoute extends ClassRoute.extend(ScrollTracker) {

// These modules should not have `ember-` tacked onto the front of them
// when forming the ids and URLs.
let isNotEmber = klass.match(/@glimmer|rsvp|jquery/);
let isNotEmber = klass.match(/@warp-drive|@glimmer|rsvp|jquery/);

if (!~klass.indexOf(project) && !isNotEmber) {
klass = `${project}-${klass}`;
Expand Down
17 changes: 17 additions & 0 deletions tests/acceptance/warp-drive-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { module, test } from 'qunit';
import { setupApplicationTest } from 'ember-qunit';
import { visit } from '@ember/test-helpers';

module('Acceptance | WarpDrive', function (hooks) {
setupApplicationTest(hooks);

test('can visit a @warp-drive package', async function (assert) {
await visit(
'/ember-data/release/modules/@warp-drive%2Fbuild-config%2Fdeprecations'
);

assert
.dom('.module-name')
.includesText('Package @warp-drive/build-config/deprecations');
});
});

0 comments on commit f38cbcb

Please sign in to comment.