message: Changed shards_test.ts to use async await.
diff: @@ -42,7 +42,7 @@ suite('Bundler', () => {
  const entrypoint1 = 'test/html/shards/shop_style_project/entrypoint1.html';
  const entrypoint2 = 'test/html/shards/shop_style_project/entrypoint2.html';
  - function bundleMultiple(
  + async function bundleMultiple(
  inputPath: string[], strategy: BundleStrategy, opts?: BundlerOptions):
  Promise<DocumentCollection> {
  const bundlerOpts = opts || {};
  @@ -50,7 +50,7 @@ suite('Bundler', () => {
  bundlerOpts.analyzer = new Analyzer({urlLoader: new FSUrlLoader()});
  }
  bundler = new Bundler(bundlerOpts);
  - return bundler.bundle(inputPath, strategy);
  + return await bundler.bundle(inputPath, strategy);
  }
  function assertContainsAndExcludes(
  @@ -68,10 +68,10 @@ suite('Bundler', () => {
  }
  suite('Sharded builds', () => {
  - test('with 3 entrypoints, all deps are in their places', () => {
  + test('with 3 entrypoints, all deps are in their places', async() => {
  const strategy = generateSharedDepsMergeStrategy(2);
  - return bundleMultiple([common, entrypoint1, entrypoint2], strategy)
  - .then((docs) => {
  + const docs =
  + await bundleMultiple([common, entrypoint1, entrypoint2], strategy);
  assert.equal(docs.size, 4);
  const commonDoc: parse5.ASTNode = docs.get(common)!.ast;
  assert.isDefined(commonDoc);
  @@ -90,19 +90,17 @@ suite('Bundler', () => {
  // Check that all the dom modules are in their expected shards
  assertContainsAndExcludes(
  commonDoc, [commonModule], [elOne, elTwo, depOne, depTwo]);
  - assertContainsAndExcludes(
  - sharedDoc, [depOne], [elOne, elTwo, depTwo]);
  + assertContainsAndExcludes(sharedDoc, [depOne], [elOne, elTwo, depTwo]);
  assertContainsAndExcludes(
  entrypoint1Doc, [elOne], [commonModule, elTwo, depOne, depTwo]);
  assertContainsAndExcludes(
  entrypoint2Doc, [elTwo, depTwo], [commonModule, elOne, depOne]);
  });
  - });
  - test('with 2 entrypoints and a shell, all deps are in their places', () => {
  + test('with 2 entrypoints and shell, all deps in their places', async() => {
  const strategy = generateShellMergeStrategy(shell, 2);
  - return bundleMultiple([shell, entrypoint1, entrypoint2], strategy)
  - .then((docs) => {
  + const docs =
  + await bundleMultiple([shell, entrypoint1, entrypoint2], strategy);
  assert.equal(docs.size, 3);
  const shellDoc: parse5.ASTNode = docs.get(shell)!.ast;
  assert.isDefined(shellDoc);
  @@ -119,9 +117,7 @@ suite('Bundler', () => {
  // Check that all the dom modules are in their expected shards
  assertContainsAndExcludes(
  - shellDoc,
  - [shellDiv, commonModule, depOne],
  - [elOne, elTwo, depTwo]);
  + shellDoc, [shellDiv, commonModule, depOne], [elOne, elTwo, depTwo]);
  assertContainsAndExcludes(
  entrypoint1Doc, [elOne], [commonModule, elTwo, depOne, depTwo]);
  assertContainsAndExcludes(
  @@ -129,4 +125,3 @@ suite('Bundler', () => {
  });
  });
  });
  -});
  