Skip to content

Commit f38cbcb

Browse files
authored
Merge pull request #916 from ember-learn/refactor-allow-@warp-drive-in-data-docs
refactor: allow @warp-drive in data docs
2 parents a5b4a45 + 0dc28b2 commit f38cbcb

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

app/routes/project-version/modules/module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class ModuleRoute extends ClassRoute.extend(ScrollTracker) {
1818

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

2323
if (!~klass.indexOf(project) && !isNotEmber) {
2424
klass = `${project}-${klass}`;

tests/acceptance/warp-drive-test.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { module, test } from 'qunit';
2+
import { setupApplicationTest } from 'ember-qunit';
3+
import { visit } from '@ember/test-helpers';
4+
5+
module('Acceptance | WarpDrive', function (hooks) {
6+
setupApplicationTest(hooks);
7+
8+
test('can visit a @warp-drive package', async function (assert) {
9+
await visit(
10+
'/ember-data/release/modules/@warp-drive%2Fbuild-config%2Fdeprecations'
11+
);
12+
13+
assert
14+
.dom('.module-name')
15+
.includesText('Package @warp-drive/build-config/deprecations');
16+
});
17+
});

0 commit comments

Comments
 (0)